java.lang.Object | |
↳ | android.hardware.ConsumerIrManager |
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.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
ConsumerIrManager.CarrierFrequencyRange | Represents a range of carrier frequencies (inclusive) on which the infrared transmitter can transmit |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Query the infrared transmitter's supported carrier frequencies
|
||||||||||
|
Check whether the device has an infrared emitter.
|
||||||||||
|
Tansmit and infrared pattern
This method is synchronous; when it returns the pattern has been transmitted. |
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Query the infrared transmitter's supported carrier frequencies
ConsumerIrManager.CarrierFrequencyRange
objects representing the ranges that the transmitter can support, or
null if there was an error communicating with the Consumer IR Service.
Check whether the device has an infrared emitter.
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.
carrierFrequency | The IR carrier frequency in Hertz. |
---|---|
pattern | The alternating on/off pattern in microseconds to transmit. |