class NotificationTrigger
Category: Device Events
Public Class Methods
new(h={})
click to toggle source
Calls superclass method
DeviceEventsTrigger::new
# File lib/ruby-macrodroid/triggers.rb, line 1184 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
Public Instance Methods
to_s(colour: false)
click to toggle source
# File lib/ruby-macrodroid/triggers.rb, line 1204 def to_s(colour: false) s = (@h[:package_name_list] + @h[:application_name_list]).uniq.join(', ') 'Notification Received ' + "\n Any Content (%s)" % s end
Also aliased as: to_summary