Class: MessageDialogAction

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

Overview

Category: Notifications

Instance Attribute Summary

Attributes inherited from Action

#constraints

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Action

#invoke

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ MessageDialogAction

Returns a new instance of MessageDialogAction.



3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
# File 'lib/ruby-macrodroid.rb', line 3587

def initialize(h={})

  options = {
    secondary_class_type: 'MessageDialogAction',
    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