Class: LaunchActivityAction
- Inherits:
-
ApplicationAction
- Object
- MacroObject
- Action
- ApplicationAction
- LaunchActivityAction
- Defined in:
- lib/ruby-macrodroid/actions.rb
Overview
Category: Applications
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ LaunchActivityAction
constructor
A new instance of LaunchActivityAction.
- #to_s(colour: false, indent: 0) ⇒ Object
Methods inherited from Action
Methods included from ObjectX
#action_to_object, #object_create, #varify
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ LaunchActivityAction
Returns a new instance of LaunchActivityAction.
76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/ruby-macrodroid/actions.rb', line 76 def initialize(h={}) = { application_name: 'Chrome', package_to_launch: 'com.android.chrome', exclude_from_recents: false, start_new: false } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object
89 90 91 |
# File 'lib/ruby-macrodroid/actions.rb', line 89 def to_s(colour: false, indent: 0) 'Launch ' + @h[:application_name] end |