Class IR

Definition

Namespace:
Tizen.System
Assembly:
Tizen.System.dll
API Level:
3
Privilege Level:
public
Privilege:
http://tizen.org/privilege/use_ir

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
System.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
Boolean
API Level: 3

Methods

View Source

Transmit(Int32, IList<Int32>)

Transmits the IR command.

Declaration
C#
Copy
public static void Transmit(int carrierFreequency, IList<int> pattern)
Parameters
Type Name Description
Int32 carrierFreequency

The carrier frequency to transmit the IR command (Hertz).

System.Collections.Generic.IList<Int32> 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.

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.

API Level: 3