public class AdResult
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<AdResult> |
CREATOR |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
AdAction |
getAction()
Returns the
AdAction that was matched and performed during ad playback |
java.lang.String |
getActionPhrase()
Get the action phrase for the recognized action.
|
ActionType |
getActionType()
Returns the action type set for this ad or null if there is not one.
|
SpeechResult[] |
getActionUtterances()
Returns the array of action utterances for the AdResult
|
CallType |
getCallType()
Returns the callType of the adResult, either "userInitiated or "serverInitiated"
|
java.lang.String |
getCancellationDetails()
Get details on how the ad was cancelled.
|
java.lang.String |
getCancellationMethod()
Returns a string for how the ad was cancelled
|
java.lang.String |
getCustomActionMetadata()
Get the metadata associated with the custom action that was recognized.
|
java.lang.String |
getEmail() |
int |
getErrorCode()
Get the error code of the error that occurred during advertisement playback
|
java.lang.String |
getErrorMessage()
Returns the error message for the AdResult.
|
java.lang.String |
getHomePhone() |
java.lang.String |
getMobilePhone() |
SpeechResult[] |
getMoreInfoUtterances()
Returns the array of moreInfoUtterances for the AdResult
|
long |
getTimeActionWasCaught()
Get the time that the time in which an action was caught.
|
float |
getTouchLocationX()
Last x position set for the touch location.
|
float |
getTouchLocationY()
Last y position set for the touch location.
|
boolean |
hasError()
Returns true if there is an error message and/or error code.
|
boolean |
isCanceled()
Returns if the ad was cancelled during the playback
|
boolean |
isMoreInfoUttered()
Returns true if moreInfo has already been uttered and recognized, false otherwise
|
boolean |
isSuccess()
Returns true if the ad ran successfully, false otherwise.
|
boolean |
isTouchClicked()
Returns if a touch clicked occurred on the ad view.
|
boolean |
wasActionInBackground()
Returns whether or not the action was performed in the background.
|
boolean |
wasCustomActionRecognized()
Check if a custom action was recognized during ad playback.
|
boolean |
wasImageDismissed() |
boolean |
wasInBackgroundAtEnd()
Returns whether or not the ad ended in the background.
|
boolean |
wasInBackgroundAtStart()
Returns whether or not the ad started in the background.
|
boolean |
wasVoiceActionTaken()
True if the voice action was taken OR if the user uttered the "more info" action.
|
void |
writeToParcel(android.os.Parcel out,
int flags) |
public static final android.os.Parcelable.Creator<AdResult> CREATOR
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel out, int flags)
writeToParcel
in interface android.os.Parcelable
public AdAction getAction()
AdAction
that was matched and performed during ad playbackpublic ActionType getActionType()
public long getTimeActionWasCaught()
public boolean wasActionInBackground()
getAction()
returns null (i.e., no caught action yet).public boolean wasInBackgroundAtStart()
public boolean wasInBackgroundAtEnd()
public SpeechResult[] getActionUtterances()
public CallType getCallType()
public SpeechResult[] getMoreInfoUtterances()
public boolean isMoreInfoUttered()
public boolean isSuccess()
getErrorCode()
and getErrorMessage()
.Error}
public boolean isCanceled()
public java.lang.String getCancellationMethod()
public java.lang.String getCancellationDetails()
public boolean isTouchClicked()
public float getTouchLocationX()
public float getTouchLocationY()
public boolean hasError()
getErrorCode()
or getErrorMessage()
.public int getErrorCode()
public java.lang.String getErrorMessage()
public java.lang.String getCustomActionMetadata()
AdAction
for more details on custom actions.AdAction
public boolean wasCustomActionRecognized()
AdAction
for more details on custom actions.AdAction
public java.lang.String getActionPhrase()
public boolean wasVoiceActionTaken()
public boolean wasImageDismissed()
public java.lang.String getEmail()
public java.lang.String getMobilePhone()
public java.lang.String getHomePhone()