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.
C#Copypublic static class IR
- Inheritance
-
objectIR
Examples
CopyConsole.WriteLine("IR availability for this device is: {0}", IR.IsAvailable);
Properties
Declaration
C#Copypublic static bool IsAvailable { get; }
Property Value
| Type | Description |
|---|---|
| bool | true if the IR module is available, otherwise false. |
Remarks
Gets the boolean value whether the IR module is available on the device.
Examples
Copyusing Tizen.System; ... Console.WriteLine("IR availability for this device is: {0}", IR.IsAvailable);
Methods
View Source
Transmit(int, IList<int>)
Transmits IR command with the specified carrier frequency and pattern.
Declaration
C#Copypublic 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
Copytry { 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. |