Class IR

Definition

Namespace:
Tizen.System
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#
Copy
public static class IR
Inheritance
object
IR
Examples
Copy
Console.WriteLine("IR availability for this device is: {0}", IR.IsAvailable);

Properties

View Source

IsAvailable

Gets the information whether the IR module is available.

Declaration
C#
Copy
public 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
Copy
using 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#
Copy
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
Copy
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.

See Also