Class: ToastAction
- Inherits:
-
Action
- Object
- MacroObject
- Action
- ToastAction
- Defined in:
- lib/ruby-macrodroid.rb
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ ToastAction
constructor
A new instance of ToastAction.
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ ToastAction
Returns a new instance of ToastAction.
2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 |
# File 'lib/ruby-macrodroid.rb', line 2225 def initialize(h={}) if h[:msg] then h[:message_text] = h[:msg] h.delete :msg end = { message_text: '', image_resource_name: 'launcher_no_border', image_package_name: 'com.arlosoft.macrodroid', image_name: 'launcher_no_border', duration: 0, display_icon: true, background_color: -12434878, position: 0 } super(.merge h) end |