public final class
ConsumerIrManager
extends Object Java.lang.Object
↳ android.hardware.ConsumerIrManager
Class Overview
Class that operates consumer infrared on the device.
To obtain an instance of the system infrared transmitter, call Context.getSystemService() with CONSUMER_IR_SERVICE as the argument.
Summary
Nested Classes
Public Methods
CarrierFrequencyRange[]
getCarrierFrequencies()
Query the infrared transmitter’s supported carrier frequencies
boolean
hasIrEmitter()
Check whether the device has an infrared emitter.
void
transmit(int carrierFrequency, int[] pattern)
Tansmit and infrared patternThis method is synchronous; when it returns the pattern has been transmitted.
public void transmit (int carrierFrequency, int[] pattern)
Tansmit and infrared pattern
This method is synchronous; when it returns the pattern has been transmitted. Only patterns shorter than 2 seconds will be transmitted.
Parameters carrierFrequency The IR carrier frequency in Hertz. pattern The alternating on/off pattern in microseconds to transmit.