Class IR
Definition
- Assembly:
- Tizen.System.dll
The IR API provides the functions to control the IR transmitter. The IR API provides the way to get the information if IR is available and then transmit the IR command.
public static class IR
- Inheritance
-
objectIR
Examples
Console.WriteLine("IR availability for this device is: {0}", IR.IsAvailable);
Properties
View SourceIsAvailable
Gets the information whether the IR module is available.
Declaration
public static bool IsAvailable { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
View SourceTransmit(int, IList<int>)
Transmits the IR command.
Declaration
public static void Transmit(int carrierFreequency, IList<int> pattern)
Parameters
Type | Name | Description |
---|---|---|
int | carrierFreequency | The carrier frequency to transmit the IR command (Hertz). |
System.Collections.Generic.IList<T><int> | pattern | The IR command list of type integer. |
Examples
try
{
List<int> pattern = new List<int>();
pattern.Add(10);
pattern.Add(50);
IR.Transmit(60657, pattern);
}
catch(Exception e)
{
}
Exceptions
Type | Condition |
---|---|
System.ArgumentException | When an invalid parameter value is set. |
System.UnauthorizedAccessException | If the privilege is not set. |
System.InvalidOperationException | In case of any system error. |
System.NotSupportedException | In case the device does not support this behavior. |