Class: HeadphonesTrigger

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

Instance Method Summary collapse

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ HeadphonesTrigger

Returns a new instance of HeadphonesTrigger.



724
725
726
727
728
729
730
731
732
733
# File 'lib/ruby-macrodroid.rb', line 724

def initialize(h={})

  options = {
    headphones_connected: true,
    mic_option: 0
  }

  super(options.merge h)

end