Class: VolumeButtonTrigger

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

Overview

Category: User Input

Instance Attribute Summary

Attributes inherited from Trigger

#constraints

Attributes inherited from MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Trigger

#match?

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ VolumeButtonTrigger

Returns a new instance of VolumeButtonTrigger.



2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
# File 'lib/ruby-macrodroid.rb', line 2335

def initialize(h={})

  options = {
    dont_change_volume: true,
    monitor_option: 1,
    not_configured: false,
    option: 0
  }

  super(options.merge h)

end