class ApplicationLaunchedTrigger
Category: Applications
Public Class Methods
new(h={})
click to toggle source
Calls superclass method
Trigger::new
# File lib/ruby-macrodroid/triggers.rb, line 138 def initialize(h={}) options = { application_name_list: ["Chrome"], package_name_list: ["com.android.chrome"], launched: true } super(options.merge h) end
Public Instance Methods
to_s(colour: false)
click to toggle source
# File lib/ruby-macrodroid/triggers.rb, line 150 def to_s(colour: false) a = @h[:application_name_list] apps = a.length > 1 ? "[%s]" % a.join(', ') : a.first 'Application Launched' + "\n " + apps end
Also aliased as: to_summary