|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Objectcom.docomostar.device.IrRemoteControl
public class IrRemoteControl
IRリモートコントローラ機能を提供します。 アプリケーションは getIrRemoteControl メソッドを利用して IrRemoteControl クラスのただ1つのインスタンスを持つことができます。 設定されたキャリア、論理パルス情報は赤外線の通信中か否かによらず、 その後の send メソッド呼び出し時に利用されます。
IrRemoteControlFrame
フィールドの概要 | |
---|---|
static int |
PATTERN_HL
コードの出力パターンがHigh 先行を表します(=0)。 |
static int |
PATTERN_LH
コードの出力パターンがLow 先行を表します(=1)。 |
コンストラクタの概要 | |
---|---|
protected |
IrRemoteControl()
アプリケーションが直接このクラスのインスタンスを生成することはできません。 |
メソッドの概要 | |
---|---|
static IrRemoteControl |
getIrRemoteControl()
IR リモートコントローラオブジェクトを取得します。 |
void |
send(int numFrames,
IrRemoteControlFrame[] frames)
デフォルトのタイムアウト値(10sec)で信号を送信します。 |
void |
send(int numFrames,
IrRemoteControlFrame[] frames,
int timeout)
タイムアウト値を指定して信号を送信します。 |
void |
send(int numFrames,
IrRemoteControlFrame[] frames,
int timeout,
int count)
タイムアウト値、送信する回数を指定して信号を送信します。 |
void |
setCarrier(int highDuration,
int lowDuration)
キャリア情報を設定します。 |
void |
setCode0(int pattern,
int highDuration,
int lowDuration)
論理0パルス情報を設定します。 |
void |
setCode1(int pattern,
int highDuration,
int lowDuration)
論理1パルス情報を設定します。 |
void |
stop()
Ir 信号の送信を停止します。 |
クラス Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final int PATTERN_HL
public static final int PATTERN_LH
コンストラクタの詳細 |
---|
protected IrRemoteControl()
メソッドの詳細 |
---|
public static IrRemoteControl getIrRemoteControl()
UnsupportedOperationException
-
public void send(int numFrames, IrRemoteControlFrame[] frames, int timeout)
numFrames
- 送信データのフレーム数(1以上)を指定します。frames
- 送信データフレームの配列を指定します。timeout
- タイムアウト値(sec)を指定します。
IllegalStateException
-
NullPointerException
-
IllegalArgumentException
-
ArrayIndexOutOfBoundsException
-
NullPointerException
-
ArrayIndexOutOfBoundsException
-
IllegalArgumentException
-
IllegalArgumentException
-
IllegalArgumentException
-
SecurityException
-
DeviceException
- DeviceException
- DeviceException
- DeviceException
- DeviceException
- LocationProvider.setTrackingListener(TrackingListener listener,
int interval, int timeout)
の引数 listener に、null 以外が設定されている場合も含みます。
DeviceException
- public void send(int numFrames, IrRemoteControlFrame[] frames)
numFrames
- 送信データのフレーム数(1以上)を指定します。frames
- 送信データフレームの配列を指定します。
IllegalStateException
-
NullPointerException
-
ArrayIndexOutOfBoundsException
-
NullPointerException
-
ArrayIndexOutOfBoundsException
-
IllegalArgumentException
-
IllegalArgumentException
-
IllegalArgumentException
-
SecurityException
-