Sequenceablepublic class ContinuationDeviceInfo extends Object implements Sequenceable
You can obtain a ContinuationDeviceInfo object from the hop task management service when the user
selects a device from the device list.
Sequenceable.Producer<T>| 构造器 | 说明 |
|---|---|
ContinuationDeviceInfo() |
A constructor used to create an empty
ContinuationDeviceInfo instance. |
ContinuationDeviceInfo(String deviceId,
String deviceType,
String deviceName) |
A constructor used to create a
ContinuationDeviceInfo instance based on the input parameters
deviceId, deviceType, and deviceName. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getDeviceId() |
Obtains the ID of the selected device.
|
String |
getDeviceName() |
Obtains the name of the selected device.
|
String |
getDeviceType() |
Obtains 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. |
boolean |
marshalling(Parcel parcel) |
Marshals this
ContinuationDeviceInfo object into a Parcel object. |
void |
setDeviceId(String deviceId) |
Sets the device ID for this
ContinuationDeviceInfo object. |
void |
setDeviceName(String deviceName) |
Sets the device name for this
ContinuationDeviceInfo object. |
void |
setDeviceType(String deviceType) |
Sets the device type for this
ContinuationDeviceInfo object. |
boolean |
unmarshalling(Parcel parcel) |
Unmarshals this
ContinuationDeviceInfo object from a Parcel object. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic ContinuationDeviceInfo()
ContinuationDeviceInfo instance.public ContinuationDeviceInfo(String deviceId, String deviceType, String deviceName)
ContinuationDeviceInfo instance based on the input parameters
deviceId, deviceType, and deviceName.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.deviceName - Indicates the name of the selected device.public String getDeviceId()
public void setDeviceId(String deviceId)
ContinuationDeviceInfo object.deviceId - Indicates the device ID to set.public String getDeviceType()
ExtraParams#DEVICETYPE_SMART_PHONE, ExtraParams#DEVICETYPE_SMART_PAD,
ExtraParams#DEVICETYPE_SMART_WATCH, or ExtraParams#DEVICETYPE_SMART_TV.public void setDeviceType(String deviceType)
ContinuationDeviceInfo object.deviceType - Indicates the device type to set, which can be
ExtraParams#DEVICETYPE_SMART_PHONE, ExtraParams#DEVICETYPE_SMART_PAD,
ExtraParams#DEVICETYPE_SMART_WATCH, or ExtraParams#DEVICETYPE_SMART_TV.public String getDeviceName()
public void setDeviceName(String deviceName)
ContinuationDeviceInfo object.deviceName - Indicates the device name to set.public boolean marshalling(Parcel parcel)
ContinuationDeviceInfo object into a Parcel object.marshalling 在接口中 Sequenceableparcel - Indicates the Parcel object for marshalling.true if the marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel parcel)
ContinuationDeviceInfo object from a Parcel object.unmarshalling 在接口中 Sequenceableparcel - Indicates the Parcel object for unmarshalling.true if the unmarshalling is successful; returns false otherwise.