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, #to_s

Constructor Details

#initialize(h = {}) ⇒ DimScreenAction

Returns a new instance of DimScreenAction.



3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
# File 'lib/ruby-macrodroid.rb', line 3638

def initialize(h={})

  options = {
    percent: 50,
    dim_screen_on: true
  }

  super(options.merge h)

end