Class: SetBrightnessAction

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

Instance Method Summary collapse

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ SetBrightnessAction

Returns a new instance of SetBrightnessAction.



2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
# File 'lib/ruby-macrodroid.rb', line 2336

def initialize(h={})

  options = {
    brightness_percent: 81,
    force_pie_mode: false,
    brightness: 0
  }

  super(options.merge h)

end