Action

public final class Action extends Thing

Represents an action performed by a user.

To use this API, add the following to your Activity:

 Action action = Action.newAction(actionType, title, appUri);
 AppIndex.AppIndexApi.start(mGoogleApiClient, action);
 

Nested Class Summary

class Action.Builder Create a builder for an Action

Constant Summary

String STATUS_TYPE_ACTIVE The status of an active action (i.e. an action that has started but not yet completed).
String STATUS_TYPE_COMPLETED The status of a completed action.
String STATUS_TYPE_FAILED The status of a failed action.
String TYPE_ACTIVATE The act of starting or activating a device or application.
String TYPE_ADD The act of editing by adding an object to a collection.
String TYPE_BOOKMARK The act of bookmarking an object.
String TYPE_COMMUNICATE The act of conveying information to another person via a communication medium (instrument) such as speech, email, or telephone conversation.
String TYPE_FILM The act of capturing sound and moving images on film, video, or digitally.
String TYPE_LIKE The act of liking an object.
String TYPE_LISTEN The act of consuming audio content.
String TYPE_PHOTOGRAPH The act of capturing still images of objects using a camera.
String TYPE_RESERVE The act of making a reservation at a business such as a restaurant.
String TYPE_SEARCH The act of searching for an object.
String TYPE_VIEW The act of consuming static visual content.
String TYPE_WANT The act of expressing a desire about the object.
String TYPE_WATCH The act of watching an object.

Public Method Summary

static Action
newAction(String actionType, String objectName, Uri objectId, Uri objectAppUri)
Creates a new action.
static Action
newAction(String actionType, String objectName, Uri objectAppUri)
Creates a new action.

Inherited Method Summary

Constants

public static final String STATUS_TYPE_ACTIVE

The status of an active action (i.e. an action that has started but not yet completed).

Constant Value: "//schema.org/ActiveActionStatus"

public static final String STATUS_TYPE_COMPLETED

The status of a completed action.

Constant Value: "//schema.org/CompletedActionStatus"

public static final String STATUS_TYPE_FAILED

The status of a failed action.

Constant Value: "//schema.org/FailedActionStatus"

public static final String TYPE_ACTIVATE

The act of starting or activating a device or application.

Constant Value: "//schema.org/ActivateAction"

public static final String TYPE_ADD

The act of editing by adding an object to a collection.

Constant Value: "//schema.org/AddAction"

public static final String TYPE_BOOKMARK

The act of bookmarking an object.

Constant Value: "//schema.org/BookmarkAction"

public static final String TYPE_COMMUNICATE

The act of conveying information to another person via a communication medium (instrument) such as speech, email, or telephone conversation.

Constant Value: "//schema.org/CommunicateAction"

public static final String TYPE_FILM

The act of capturing sound and moving images on film, video, or digitally.

Constant Value: "//schema.org/FilmAction"

public static final String TYPE_LIKE

The act of liking an object.

Constant Value: "//schema.org/LikeAction"

public static final String TYPE_LISTEN

The act of consuming audio content.

Constant Value: "//schema.org/ListenAction"

public static final String TYPE_PHOTOGRAPH

The act of capturing still images of objects using a camera.

Constant Value: "//schema.org/PhotographAction"

public static final String TYPE_RESERVE

The act of making a reservation at a business such as a restaurant.

Constant Value: "//schema.org/ReserveAction"

public static final String TYPE_SEARCH

The act of searching for an object.

Constant Value: "//schema.org/SearchAction"

public static final String TYPE_VIEW

The act of consuming static visual content.

Constant Value: "//schema.org/ViewAction"

public static final String TYPE_WANT

The act of expressing a desire about the object.

Constant Value: "//schema.org/WantAction"

public static final String TYPE_WATCH

The act of watching an object.

Constant Value: "//schema.org/WatchAction"

Public Methods

public static Action newAction (String actionType, String objectName, Uri objectId, Uri objectAppUri)

Creates a new action.

Parameters
actionType The schema.org action type (e.g. "//schema.org/ListenAction").
objectName The name of the content, must not be null. For more information, visit these guidelines for providing a descriptive name.
objectId The equivalent web url for the content, if available. Can be null.
objectAppUri The app URI of the content, must not be null. The URI must be in the App Indexing format.

public static Action newAction (String actionType, String objectName, Uri objectAppUri)

Creates a new action.

Parameters
actionType The schema.org action type (e.g. "//schema.org/ListenAction").
objectName The name of the content, must not be null. For more information, visit these guidelines for providing a descriptive name.
objectAppUri The app URI of the content, must not be null. The URI must be in the App Indexing format.

Send feedback about...

Need help? Visit our support page.