Class: MessageDialogAction
- Inherits:
-
NotificationsAction
- Object
- MacroObject
- Action
- NotificationsAction
- MessageDialogAction
- Defined in:
- lib/ruby-macrodroid/actions.rb
Overview
Category: Notifications
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ MessageDialogAction
constructor
A new instance of MessageDialogAction.
- #to_s(colour: false, indent: 0) ⇒ Object
Methods inherited from Action
Methods included from ObjectX
#action_to_object, #object_create, #varify
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ MessageDialogAction
Returns a new instance of MessageDialogAction.
2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 |
# File 'lib/ruby-macrodroid/actions.rb', line 2030 def initialize(h={}) = { 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(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object
2051 2052 2053 |
# File 'lib/ruby-macrodroid/actions.rb', line 2051 def to_s(colour: false, indent: 0) 'Display Dialog' + "\n Battery at: [battery]" end |