Class: NotificationAction

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

Instance Method Summary collapse

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ NotificationAction

Returns a new instance of NotificationAction.



2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
# File 'lib/ruby-macrodroid.rb', line 2201

def initialize(h={})

  options = {
    ringtone_name: 'Default',
    notification_text: '',
    notification_subject: '',
    macro_guid_to_run: 0,
    notification_channel_type: 0,
    image_resource_id: 0,
    overwrite_existing: false,
    priority: 0,
    ringtone_index: 0,
    icon_bg_color: -1762269,
    run_macro_when_pressed: false
  }

  super(options.merge h)

end