Action

public final classAction extendsThing

This class is deprecated.
PleaseMigrate to the Firebase App Indexing API

Nested Class Summary

classAction.BuilderThis class is deprecated. PleaseMigrate to the Firebase App Indexing API  

Constant Summary

String STATUS_TYPE_ACTIVEThe status of an active action (i.e. an action that has started but not yet completed).
String STATUS_TYPE_COMPLETEDThe status of a completed action.
String STATUS_TYPE_FAILEDThe status of a failed action.
String TYPE_ACTIVATEThe act of starting or activating a device or application.
StringTYPE_ADDThe act of editing by adding an object to a collection.
String TYPE_BOOKMARKThe act of bookmarking an object.
String TYPE_COMMUNICATEThe act of conveying information to another person via a communication medium (instrument) such as speech, email, or telephone conversation.
StringTYPE_FILMThe act of capturing sound and moving images on film, video, or digitally.
StringTYPE_LIKEThe act of liking an object.
String TYPE_LISTENThe act of consuming audio content.
String TYPE_PHOTOGRAPHThe act of capturing still images of objects using a camera.
String TYPE_RESERVEThe act of making a reservation at a business such as a restaurant.
String TYPE_SEARCHThe act of searching for an object.
StringTYPE_VIEWThe act of consuming static visual content.
StringTYPE_WANTThe act of expressing a desire about the object.
String TYPE_WATCHThe act of watching an object.

Public Method Summary

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

Inherited Method Summary

From class java.lang.Object
Object
clone()
boolean
equals(Object arg0)
void
finalize()
finalClass<?>
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 finalStringSTATUS_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 finalStringSTATUS_TYPE_COMPLETED

The status of a completed action.

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

public static finalStringSTATUS_TYPE_FAILED

The status of a failed action.

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

public static finalStringTYPE_ACTIVATE

The act of starting or activating a device or application.

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

public static finalStringTYPE_ADD

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

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

public static finalStringTYPE_BOOKMARK

The act of bookmarking an object.

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

public static finalStringTYPE_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 finalStringTYPE_FILM

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

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

public static finalStringTYPE_LIKE

The act of liking an object.

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

public static finalStringTYPE_LISTEN

The act of consuming audio content.

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

public static finalStringTYPE_PHOTOGRAPH

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

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

public static finalStringTYPE_RESERVE

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

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

public static finalStringTYPE_SEARCH

The act of searching for an object.

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

public static finalStringTYPE_VIEW

The act of consuming static visual content.

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

public static finalStringTYPE_WANT

The act of expressing a desire about the object.

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

public static finalStringTYPE_WATCH

The act of watching an object.

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

Public Methods

public staticActionnewAction(String actionType,String objectName,Uri objectId,Uri objectAppUri)

Creates a new action.

Parameters
actionTypeThe schema.org action type (e.g. "//schema.org/ListenAction").
objectName The name of the content, must not be null. For more information, visitthese guidelines for providing a descriptive name.
objectIdThe 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 theApp Indexing format.

public staticActionnewAction(String actionType,String objectName,Uri objectAppUri)

Creates a new action.

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

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2021-02-11 UTC.