Class: SetBrightnessAction

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

Overview

Category: Screen

Instance Attribute Summary

Attributes inherited from Action

#constraints

Attributes inherited from MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Action

#invoke

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ SetBrightnessAction

Returns a new instance of SetBrightnessAction.



3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
# File 'lib/ruby-macrodroid.rb', line 3732

def initialize(h={})

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

  super(options.merge h)

end