Summary: Nested Classes | Constants | Methods | Inherited Methods | [Expand All]
public final class

# Action

extends Thing

java.lang.Object
↳ | com.google.android.gms.appindexing.Thing
| ↳ | com.google.android.gms.appindexing.Action

## Class Overview

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);

## Summary

Nested Classes
class | Action.Builder | Create a builder for an `Action`.

Constants
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 Methods
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.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## 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: "http://schema.org/ActiveActionStatus"

#### public static final String STATUS_TYPE_COMPLETED

The status of a completed action.

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

#### public static final String STATUS_TYPE_FAILED

The status of a failed action.

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

#### public static final String TYPE_ACTIVATE

The act of starting or activating a device or application.

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

#### public static final String TYPE_ADD

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

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

#### public static final String TYPE_BOOKMARK

The act of bookmarking an object.

Constant Value: "http://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: "http://schema.org/CommunicateAction"

#### public static final String TYPE_FILM

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

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

#### public static final String TYPE_LIKE

The act of liking an object.

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

#### public static final String TYPE_LISTEN

The act of consuming audio content.

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

#### public static final String TYPE_PHOTOGRAPH

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

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

#### public static final String TYPE_RESERVE

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

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

#### public static final String TYPE_SEARCH

The act of searching for an object.

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

#### public static final String TYPE_VIEW

The act of consuming static visual content.

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

#### public static final String TYPE_WANT

The act of expressing a desire about the object.

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

#### public static final String TYPE_WATCH

The act of watching an object.

Constant Value: "http://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. "http://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. "http://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.