@Document(name = "builtin:PotentialAction")
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

Builder for PotentialAction.

Public functions

String?

Returns a string describing the action.

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.

String?

Returns the deeplink URI.

Public functions

getDescription

Added in 1.1.0-alpha04
fun getDescription(): String?

Returns a string describing the action.

getName

Added in 1.1.0-alpha04
fun getName(): 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. For example, the "Start Exercise" BII has an action id of "actions.intent.START_EXERCISE".

getUri

Added in 1.1.0-alpha04
fun getUri(): String?

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.