Class: NotificationTrigger

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

Instance Method Summary collapse

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ NotificationTrigger

Returns a new instance of NotificationTrigger.



905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
# File 'lib/ruby-macrodroid.rb', line 905

def initialize(h={})

  options = {
    text_content: '',
    package_name_list: ["Any Application"],
    application_name_list: ["Any Application"],
    exclude_apps: false,
    ignore_ongoing: true,
    option: 0,
    exact_match: false,
    excludes: false,
    sound_option: 0,
    supress_multiples: true,
    enable_regex: false
  }

  super(options.merge h)

end