Class: DeviceOrientationConstraint

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

Overview

Category: Sensors

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 = {}) ⇒ DeviceOrientationConstraint

Returns a new instance of DeviceOrientationConstraint.



5051
5052
5053
5054
5055
5056
5057
5058
5059
# File 'lib/ruby-macrodroid.rb', line 5051

def initialize(h={})

  options = {
    portrait: true
  }

  super(options.merge h)

end