Class: FloatingButtonTrigger

Inherits:
Trigger show all
Defined in:
lib/ruby-macrodroid.rb

Overview

Category: User Input

Instance Attribute Summary

Attributes inherited from Trigger

#constraints

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Trigger

#match?

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ FloatingButtonTrigger

Returns a new instance of FloatingButtonTrigger.



2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
# File 'lib/ruby-macrodroid.rb', line 2639

def initialize(h={})

  options = {
    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(options.merge h)

end

Instance Method Details

#to_s(colour: false) ⇒ Object Also known as: to_summary



2658
2659
2660
# File 'lib/ruby-macrodroid.rb', line 2658

def to_s(colour: false)
  'Floating Button'
end