class MessageDialogAction
Category: Notifications
Public Class Methods
new(h={})
click to toggle source
Calls superclass method
NotificationsAction::new
# File lib/ruby-macrodroid/actions.rb, line 2441 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
Public Instance Methods
to_s(colour: false, indent: 0)
click to toggle source
# File lib/ruby-macrodroid/actions.rb, line 2462 def to_s(colour: false, indent: 0) 'Display Dialog' + "\n Battery at: [battery]" end