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) ⇒ Object
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ MessageDialogAction
Returns a new instance of MessageDialogAction.
1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 |
# File 'lib/ruby-macrodroid/actions.rb', line 1704 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) ⇒ Object
1725 1726 1727 |
# File 'lib/ruby-macrodroid/actions.rb', line 1725 def to_s(colour: false) 'Display Dialog' + "\n Battery at: [battery]" end |