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.



3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
# File 'lib/ruby-macrodroid.rb', line 3463

def initialize(h={})

  options = {
    percent: 50,
    dim_screen_on: true
  }

  super(options.merge h)

end