Class: LaunchActivityAction

Inherits:
Action show all
Defined in:
lib/ruby-macrodroid.rb

Instance Method Summary collapse

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ LaunchActivityAction

Returns a new instance of LaunchActivityAction.



1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
# File 'lib/ruby-macrodroid.rb', line 1419

def initialize(h={})

  options = {
    application_name: 'Chrome',
    package_to_launch: 'com.android.chrome',
    exclude_from_recents: false,
    start_new: false
  }

  super(options.merge h)

end