class FloatingButtonTrigger

Category: User Input

Public Class Methods

new(h={}) click to toggle source
Calls superclass method Trigger::new
# File lib/ruby-macrodroid/triggers.rb, line 1602
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

Public Instance Methods

to_s(colour: false) click to toggle source
# File lib/ruby-macrodroid/triggers.rb, line 1621
def to_s(colour: false)
  'Floating Button'
end
Also aliased as: to_summary
to_summary(colour: false)
Alias for: to_s