Class: HeadphonesTrigger

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

Overview

Category: Connectivity

Instance Attribute Summary

Attributes inherited from Trigger

#constraints

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Trigger

#match?

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ HeadphonesTrigger

Returns a new instance of HeadphonesTrigger.



1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
# File 'lib/ruby-macrodroid.rb', line 1563

def initialize(h={})

  options = {
    headphones_connected: true,
    mic_option: 0
  }

  super(options.merge h)

end