Class: ApplicationLaunchedTrigger

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

Overview

Category: Applications

Instance Attribute Summary

Attributes inherited from Trigger

#constraints

Attributes inherited from MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Trigger

#match?

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ ApplicationLaunchedTrigger

Returns a new instance of ApplicationLaunchedTrigger.



1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
# File 'lib/ruby-macrodroid.rb', line 1233

def initialize(h={})

  options = {
    application_name_list: ["Chrome"],
    package_name_list: ["com.android.chrome"],
    launched: true
  }

  super(options.merge h)

end