Class: LaunchActivityAction
- Inherits:
-
ApplicationAction
- Object
- MacroObject
- Action
- ApplicationAction
- LaunchActivityAction
- Defined in:
- lib/ruby-macrodroid.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 ⇒ Object
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ LaunchActivityAction
Returns a new instance of LaunchActivityAction.
2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 |
# File 'lib/ruby-macrodroid.rb', line 2454 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 ⇒ Object
2467 2468 2469 |
# File 'lib/ruby-macrodroid.rb', line 2467 def to_s() 'Launch ' + @h[:application_name] end |