public interface IContinuationDeviceCallback
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
default void |
onConnected(ContinuationDeviceInfo deviceInfo) |
Called when the user selects a device from the candidate device list.
|
void |
onDeviceConnectDone(String deviceId,
String deviceType) |
已过时。
This change is effective since API version 6,
Replaced by
onConnected(ohos.aafwk.ability.continuation.ContinuationDeviceInfo). |
void |
onDeviceDisconnectDone(String deviceId) |
已过时。
This change is effective since API version 6,
Replaced by
onDisconnected(java.lang.String). |
default void |
onDisconnected(String deviceId) |
Called when a device is disconnected from the hop task management service.
|
@Deprecated void onDeviceConnectDone(String deviceId, String deviceType)
onConnected(ohos.aafwk.ability.continuation.ContinuationDeviceInfo).deviceId - Indicates the ID of the selected device.deviceType - Indicates the type of the selected device, which can be
ExtraParams#DEVICETYPE_SMART_PHONE, ExtraParams#DEVICETYPE_SMART_PAD,
ExtraParams#DEVICETYPE_SMART_WATCH, or ExtraParams#DEVICETYPE_SMART_TV.default void onConnected(ContinuationDeviceInfo deviceInfo)
deviceInfo - Indicates the information about the selected device.@Deprecated void onDeviceDisconnectDone(String deviceId)
onDisconnected(java.lang.String).deviceId - Indicates the ID of the disconnected device.default void onDisconnected(String deviceId)
deviceId - Indicates the ID of the disconnected device.