Class: DimScreenAction

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

Overview

Category: Screen

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Action

#invoke

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ DimScreenAction

Returns a new instance of DimScreenAction.



3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
# File 'lib/ruby-macrodroid.rb', line 3162

def initialize(h={})

  options = {
    percent: 50,
    dim_screen_on: true
  }

  super(options.merge h)

end