@Document(name = "builtin:PotentialAction")
public class PotentialAction


An AppSearch document representing an action. This action schema type is used for the nested potentialActions field in entity schema types such as builtin:Thing or builtin:Timer.

Summary

Nested types

public final class PotentialAction.Builder

Builder for PotentialAction.

Public methods

@Nullable String

Returns a string describing the action.

@Nullable String

Returns the BII action ID, which comes from Action IDs of Built-in intents listed at developer.android.com/reference/app-actions/built-in-intents/bii-index.

@Nullable String

Returns the deeplink URI.

Public methods

getDescription

Added in 1.1.0-alpha06
public @Nullable String getDescription()

Returns a string describing the action.

getName

Added in 1.1.0-alpha06
public @Nullable String getName()

Returns the BII action ID, which comes from Action IDs of Built-in intents listed at developer.android.com/reference/app-actions/built-in-intents/bii-index. For example, the "Start Exercise" BII has an action id of "actions.intent.START_EXERCISE".

getUri

Added in 1.1.0-alpha06
public @Nullable String getUri()

Returns the deeplink URI.

A deeplink URI is a URI that lets a user access a specific content or feature within an app directly. Users can create one by adding parameters to the app's base URI. To use a deeplink URI in an Android application, users can create an android.content.Intent object by calling parseUri with the deeplink URI. Creating a deeplink URI, and adding intent extras, can be done by building an intent and calling toUri.