Class Info |
|---|
public class ActivityConversionResponse implements Parcelable Activity conversion result. |
Qualifier and Type | Field and Description |
|---|---|
static final Creator<ActivityConversionResponse> | Default builder for deserializing the activity conversion result. |
Constructor Name |
|---|
| Builds an ActivityConversionResponse instance. |
ActivityConversionResponse(List<ActivityConversionData> activityConversionDatas) Builds an ActivityConversionResponse instance. |
Qualifier and Type | Method Name and Description |
|---|---|
static boolean | containDataFromIntent(Intent intent) Checks whether the intent contains ActivityConversionResponse. |
List<ActivityConversionData> | Obtains all activity conversion events in the result. |
static ActivityConversionResponse | getDataFromIntent(Intent intent) Obtains ActivityConversionResponse from the intent. |
Fields |
|---|
public static final Creator<ActivityConversionResponse> CREATOR Default builder for deserializing the activity conversion result. |
Constructor |
|---|
public ActivityConversionResponse() Builds an ActivityConversionResponse instance. |
Constructor |
|---|
public ActivityConversionResponse(List<ActivityConversionData> activityConversionDatas) Builds an ActivityConversionResponse instance. |
Parameters
Name | Description |
|---|---|
activityConversionDatas | List of activity conversion events. |
Method |
|---|
public static boolean containDataFromIntent(Intent intent) Checks whether the intent contains ActivityConversionResponse. This method returns true if the intent contains the object, and false if the intent does not contain the object or is null. This is a utility function that can be called inside an intent receiver to ensure that the received intent is from the activity identification service. |
Parameters
Name | Description |
|---|---|
intent | Intent passed to the server for calling the createActivityConversionUpdates method. |
Returns
Type | Description |
|---|---|
boolean | true if the intent contains ActivityConversionResponse; false otherwise. |
Method |
|---|
public List<ActivityConversionData> getActivityConversionDatas() Obtains all activity conversion events in the result, which are sorted by time in ascending order. |
Returns
Type | Description |
|---|---|
List<ActivityConversionData> | List of activity conversion events. |
Method |
|---|
public static ActivityConversionResponse getDataFromIntent(Intent intent) Obtains ActivityConversionResponse from the intent. This method will return null if ActivityConversionResponse cannot be obtained from the intent. |
Parameters
Name | Description |
|---|---|
intent | Intent passed to the server for calling the createActivityConversionUpdates method. |
Returns
Type | Description |
|---|---|
ActivityConversionResponse | Activity conversion result. If the intent does not contain ActivityConversionResponse, null will be returned. |