Class: FloatingButtonTrigger

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

Instance Method Summary collapse

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ FloatingButtonTrigger

Returns a new instance of FloatingButtonTrigger.



1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
# File 'lib/ruby-macrodroid.rb', line 1272

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