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.

    public static class IR
    Inheritance
    object
    IR
    Examples
        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
    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
    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
    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.

    See Also
    IsAvailable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX