public static interface BluetoothManager.BluetoothManagerCallback
| Modifier and Type | Method and Description |
|---|---|
void |
onConnect(java.lang.String name,
java.lang.String remoteAddr)
リモート機器と接続した時
#startListenによる接続待ち中にリモート機器から接続されたか
#connect呼び出しによるリモート機器への接続要求が成功した
|
void |
onDisconnect()
リモート機器との接続が解除された時
|
void |
onDiscover(java.util.Collection<BluetoothDeviceInfo> devices)
Bluetooth機器探索結果が更新された時
|
void |
onFailed()
リモート機器への接続要求が失敗した時(#connectの呼び出しが失敗した時)
|
void |
onReceive(byte[] message,
int length)
データを受信した時
|
void onDiscover(java.util.Collection<BluetoothDeviceInfo> devices)
devices - void onConnect(java.lang.String name,
java.lang.String remoteAddr)
name - remoteAddr - void onDisconnect()
void onFailed()
void onReceive(byte[] message,
int length)
message - length -