Class: BrightnessConstraint

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

Overview

Category: Screen and Speaker

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Constraint

#match?

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ BrightnessConstraint

Returns a new instance of BrightnessConstraint.



4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
# File 'lib/ruby-macrodroid.rb', line 4895

def initialize(h={})

  options = {
    brightness: 35,
    equals: false,
    force_pie_mode: false,
    greater_than: false,
    is_auto_brightness: false
  }

  super(options.merge h)

end