Class: FloatingButtonTrigger
- Inherits:
-
Trigger
- Object
- MacroObject
- Trigger
- FloatingButtonTrigger
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: User Input
Instance Attribute Summary
Attributes inherited from Trigger
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ FloatingButtonTrigger
constructor
A new instance of FloatingButtonTrigger.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Trigger
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ FloatingButtonTrigger
Returns a new instance of FloatingButtonTrigger.
2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 |
# File 'lib/ruby-macrodroid.rb', line 2632 def initialize(h={}) = { image_resource_id: 0, icon_bg_color: -9079435, alpha: 100, padding: 20, force_location: false, show_on_lock_screen: false, size: 0, transparent_background: false, x_location: 0, y_location: 0 } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
2651 2652 2653 |
# File 'lib/ruby-macrodroid.rb', line 2651 def to_s(colour: false) 'FloatingButtonTrigger ' + @h.inspect end |