Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Class Info |
|---|
public class ActivityConversionInfo implements Parcelable, IMessageEntity Activity conversion information. |
ActivityConversionInfo.Builder activityTransition = new ActivityConversionInfo.Builder(); activityTransition.setActivityType(activityType); activityTransition.setConversionType(conversionType); ActivityConversionInfo activityConversionInfo = activityTransition.build();
val activityTransition = ActivityConversionInfo.Builder() activityTransition.setActivityType(activityType) activityTransition.setConversionType(conversionType) val activityConversionInfo = activityTransition.build()
Qualifier and Type | Class Name and Description |
|---|---|
public static class | ActivityConversionInfo.Builder Builds an ActivityConversionInfo instance. |
Qualifier and Type | Field and Description |
|---|---|
static final Creator<ActivityConversionInfo> | Used to deserialize activity conversion information. |
static final int | A user enters the specified activity. The value is 0. |
static final int | A user exits the specified activity. The value is 1. |
Constructor Name |
|---|
| Builds an ActivityConversionInfo instance. |
ActivityConversionInfo(int activityType, int conversionType) Builds an ActivityConversionInfo instance. |
Qualifier and Type | Method Name and Description |
|---|---|
int | Obtains the activity type of the current activity conversion instance. |
int | Obtains the conversion type of the current activity conversion instance. |
void | setActivityType(int activityType) Sets the activity type of the current activity conversion instance. |
void | setConversionType(int conversionType) Sets the conversion type of the current activity conversion instance. |
Fields |
|---|
public static final Creator<ActivityConversionInfo> CREATOR Used to deserialize activity conversion information. |
Fields |
|---|
public static final int ENTER_ACTIVITY_CONVERSION A user enters the specified activity. ENTER_ACTIVITY_CONVERSION: 0 For details about other constant values, please refer to Constant Values. |
Fields |
|---|
public static final int EXIT_ACTIVITY_CONVERSION A user exits the specified activity. EXIT_ACTIVITY_CONVERSION: 1 For details about other constant values, please refer to Constant Values. |
Constructor |
|---|
public ActivityConversionInfo() Builds an ActivityConversionInfo instance. |
Constructor |
|---|
public ActivityConversionInfo(int activityType, int conversionType) Builds an ActivityConversionInfo instance. |
Parameters
Name | Description |
|---|---|
activityType | Activity type. The activity type cannot be OTHERS. For details, please refer to Constant Values. |
conversionType | Conversion type. For details, please refer to Constant Values. |
Throws
Name | Description |
|---|---|
IllegalArgumentException | Invalid parameter. Ensure that the values of activityType and conversionType are valid. |
Method |
|---|
public int getActivityType() Obtains the activity type of the current activity conversion instance. |
Returns
Type | Description |
|---|---|
int | Activity type. The activity type cannot be OTHERS. For details, please refer to Constant Values. |
Method |
|---|
public int getConversionType() Obtains the conversion type of the current activity conversion instance. |
Returns
Type | Description |
|---|---|
int | Conversion type. The options are ENTER_ACTIVITY_CONVERSION and EXIT_ACTIVITY_CONVERSION. |
Method |
|---|
public void setActivityType(int activityType) Sets the activity type of the current activity conversion instance. The value of activityType must be one of the activity types defined by ActivityIdentificationData. Activity type OTHERS is not supported. Otherwise, an error indicating invalid parameter will be thrown. |
Parameters
Name | Description |
|---|---|
activityType | Activity type. The activity type cannot be OTHERS. For details, please refer to Constant Values. |
Throws
Name | Description |
|---|---|
IllegalArgumentException | Invalid parameter. Ensure that the value of activityType is valid. |
Method |
|---|
public void setConversionType(int conversionType) Sets the conversion type of the current activity conversion instance. The value of conversionType must be one of the conversion types defined by ActivityConversionInfo. Otherwise, an error indicating invalid parameter will be thrown. |
Parameters
Name | Description |
|---|---|
conversionType | Conversion type. The options are ENTER_ACTIVITY_CONVERSION and EXIT_ACTIVITY_CONVERSION. |
Throws
Name | Description |
|---|---|
IllegalArgumentException | Invalid parameter. Ensure that the value of conversionType is valid. |