Class: HeadphonesTrigger

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

Overview

Category: Connectivity

Instance Attribute Summary

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



1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
# File 'lib/ruby-macrodroid.rb', line 1309

def initialize(h={})

  options = {
    headphones_connected: true,
    mic_option: 0
  }

  super(options.merge h)

end