java.lang.Object | ||
↳ | com.google.android.gms.appindexing.Thing | |
↳ | com.google.android.gms.appindexing.Action |
Represents an action performed by a user.
To use this API, add the following to your Activity
:
Action action = Action.newAction(actionType, title, objectUrl);
AppIndex.AppIndexApi.action(mGoogleApiClient, action);
Nested Classes | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Action.Builder |
Create a builder for an Action .
|
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | TYPE_ADD | The act of editing by adding an object to a collection. | |||||||||
String | TYPE_BOOKMARK | An agent bookmarks/flags/labels/tags/marks an object. | |||||||||
String | TYPE_LIKE | The act of liking an object. | |||||||||
String | TYPE_LISTEN | The act of consuming audio content. | |||||||||
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new action.
| |||||||||||
Creates a new action.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
The act of editing by adding an object to a collection.
An agent bookmarks/flags/labels/tags/marks an object.
The act of liking an object.
The act of consuming audio content.
The act of consuming static visual content.
The act of expressing a desire about the object.
The act of watching an object.
Creates a new action.
actionType | The schema.org action type (e.g. "http://schema.org/ListenAction"). |
---|---|
objectName | Name of the content. |
objectId | Equivalent web url for the content, if available. See App Indexing. Can be null. |
objectUrl | The deep link of the content in the App Indexing format. |
Creates a new action.
actionType | The schema.org action type (e.g. "http://schema.org/ListenAction"). |
---|---|
objectName | Name of the content. |
objectUrl | The deep link of the content in the App Indexing format. |