Sequenceablepublic class ExtraParams extends Object implements Sequenceable
You can pass an ExtraParams object when calling methods for device filtering to the methods used for
interacting with the hop task management service.
Sequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static String |
DEVICETYPE_SMART_PAD |
Indicates a tablet.
|
static String |
DEVICETYPE_SMART_PHONE |
Indicates a smartphone.
|
static String |
DEVICETYPE_SMART_TV |
Indicates a smart TV.
|
static String |
DEVICETYPE_SMART_WATCH |
Indicates a smart watch.
|
| 构造器 | 说明 |
|---|---|
ExtraParams() |
A constructor used to create an empty
ExtraParams instance. |
ExtraParams(String[] devType,
String targetBundleName,
String description,
String jsonParams) |
A constructor used to create an
ExtraParams instance based on the input parameters devType,
targetBundleName, and description. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getDescription() |
Obtains the description used for device filtering.
|
String[] |
getDevType() |
Obtains the list of device types.
|
String |
getJsonParams() |
Obtains the custom JSON parameters used as filter conditions.
|
String |
getTargetBundleName() |
Obtains the bundle name of the target application where the ability will be hopped.
|
boolean |
marshalling(Parcel parcel) |
Marshals this
ExtraParams object into a Parcel object. |
void |
setDescription(String description) |
Sets the description used for device filtering.
|
void |
setDevType(String[] devType) |
Sets the list of device types.
|
void |
setJsonParams(String jsonParams) |
Sets the custom JSON parameters to be used as filter conditions.
|
void |
setTargetBundleName(String targetBundleName) |
Sets the bundle name of the target application where ability will be hopped.
|
boolean |
unmarshalling(Parcel parcel) |
Unmarshals this
ExtraParams object from a Parcel object. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic static final String DEVICETYPE_SMART_PAD
public static final String DEVICETYPE_SMART_PHONE
public static final String DEVICETYPE_SMART_TV
public ExtraParams()
ExtraParams instance.public ExtraParams(String[] devType, String targetBundleName, String description, String jsonParams)
ExtraParams instance based on the input parameters devType,
targetBundleName, and description.devType - Indicates the type of devices to be matched. This parameter can be any combination of
DEVICETYPE_SMART_PHONE, DEVICETYPE_SMART_PAD, DEVICETYPE_SMART_WATCH, and
DEVICETYPE_SMART_TV.targetBundleName - Indicates the bundle name of the target application where the ability will be hopped.description - Indicates the description used for device filtering.jsonParams - Indicates the custom JSON parameters to be used as filter conditions.public String[] getDevType()
public void setDevType(String[] devType)
devType - Indicates the type of devices to be matched. This parameter can be any combination of
DEVICETYPE_SMART_PHONE, DEVICETYPE_SMART_PAD, DEVICETYPE_SMART_WATCH, and
DEVICETYPE_SMART_TV.public String getTargetBundleName()
public void setTargetBundleName(String targetBundleName)
targetBundleName - Indicates the bundle name of the target application to set.public String getDescription()
public void setJsonParams(String jsonParams)
jsonParams - Indicates the custom JSON parameters to set.public String getJsonParams()
public void setDescription(String description)
description - Indicates the device description to set.public boolean marshalling(Parcel parcel)
ExtraParams 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)
ExtraParams object from a Parcel object.unmarshalling 在接口中 Sequenceableparcel - Indicates the Parcel object for unmarshalling.true if the unmarshalling is successful; returns false otherwise.