java.lang.Object | |
↳ | com.google.firebase.appindexing.Action.Builder |
The builder for Action
.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ACTIVATE_ACTION | The act of starting or activating something. | |||||||||
String | ADD_ACTION | The act of editing by adding something to a collection (e.g. an item to a shopping cart or movie to a queue). | |||||||||
String | BOOKMARK_ACTION | The act of bookmarking something (e.g. an article or song). | |||||||||
String | COMMENT_ACTION | The act of commenting on something (e.g. an article or social media post). | |||||||||
String | LIKE_ACTION | The act of liking something (e.g. a book, song or article). | |||||||||
String | LISTEN_ACTION | The act of listening to something (e.g. music or a podcast). | |||||||||
String | SEND_ACTION | The act of sending a message. | |||||||||
String | SHARE_ACTION | The act of sharing something (e.g. a document or social media post) | |||||||||
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 | VIEW_ACTION | The act of viewing something (e.g. an article or profile). | |||||||||
String | WATCH_ACTION | The act of watching something (e.g. a video, movie or TV show). |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
The constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builds the action.
| |||||||||||
Sets the status of the action.
| |||||||||||
Sets the metadata for this action.
| |||||||||||
Sets the object that the action is taken on (e.g. the article being viewed, or the song
being listened to).
| |||||||||||
Sets the object that the action is taken on (e.g. the article being viewed, or the song
being listened to).
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
The act of starting or activating something.
The act of editing by adding something to a collection (e.g. an item to a shopping cart or movie to a queue).
The act of bookmarking something (e.g. an article or song).
The act of commenting on something (e.g. an article or social media post).
The act of liking something (e.g. a book, song or article).
The act of listening to something (e.g. music or a podcast).
The act of sending a message.
The act of sharing something (e.g. a document or social media post)
The status of an active action (i.e. an action that has started but not yet completed).
The status of a completed action.
The status of a failed action.
The act of viewing something (e.g. an article or profile).
The act of watching something (e.g. a video, movie or TV show).
The constructor.
Parameters | |
---|---|
type |
String :
The Schema.org type best describing this action (use one of the constants on this
class, or refer to http://schema.org/Action for a
list of standard action types).
|
Sets the metadata for this action. Optional.
Parameters | |
---|---|
metadataBuilder |
Action.Metadata.Builder
|
Returns | |
---|---|
Action.Builder |
Sets the object that the action is taken on (e.g. the article being viewed, or the song being listened to).
Parameters | |
---|---|
name |
String :
The name of the object (e.g. the title of an article, or name of a song).
Must not be null. |
url |
String :
The URL of the object (this URL needs to be handled by the app to take the user to
the right place). Must be a valid URL.
|
Returns | |
---|---|
Action.Builder |
Sets the object that the action is taken on (e.g. the article being viewed, or the song being listened to).
Parameters | |
---|---|
name |
String :
The name of the object (e.g. the title of an article, or name of a song).
Must not be null. |
url |
String :
The URL of the object (this URL needs to be handled by the app to take the user to
the right place). Must be a valid URL. |
webUrl |
String :
The web URL of the object, if different from url . Must be a valid URL.
|
Returns | |
---|---|
Action.Builder |