CLASS info
public class ActivityConversionData implements Parcelable
Activity conversion event.

Field Summary

NameDesc
Creator<ActivityConversionData>CREATORUsed for deserializing activity conversion event.

Public Constructor Summary

Constructor name
ActivityConversionData(int activityType, int conversionType ,long elapsedTimeFromReboot)
Builds a ActivityConversionData

Public Method Summary

Return typeMethod name
intgetActivityType()
longgetElapsedTimeFromReboot()
intgetConversionType()

Public Constructors

constructor
public ActivityConversionData(int activityType, int conversionType ,long elapsedTimeFromReboot)
Builds a ActivityConversionData

Parameters

Parameter nameParameter desc
activityTypeActivity type.
conversionTypeActivity conversion type.
elapsedTimeFromRebootConversion time. Number of milliseconds since boot.

Public Methods

Method
public int getActivityType()
This API is used to obtain the activity type of the conversion. The value is one of the activity types defined in ActivityIdentificationData.

Return

typedesc
intActivity type.
Method
public long getElapsedTimeFromReboot()

This API is used to obtain the elapsed real time (in milliseconds) of this conversion since boot, including sleeping time obtained by SystemClock.elapsedRealtime().

Return

typedesc
long

timestamp, in milliseconds.

Method
public int getConversionType()
This API is used to obtain the comversion type. The value is one of the conversion types defined in ActivityConversionInfo.

Return

typedesc
intConversion type.