Class: NotificationTrigger

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

Overview

Category: Device Events

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 = {}) ⇒ NotificationTrigger

Returns a new instance of NotificationTrigger.



1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
# File 'lib/ruby-macrodroid.rb', line 1993

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