PotentialAction.Builder


class PotentialAction.Builder


Builder for PotentialAction.

Summary

Public constructors

Constructor for PotentialAction.Builder.

Builder(potentialAction: PotentialAction)

Constructor with all the existing values.

Public functions

PotentialAction

Builds the PotentialAction.

PotentialAction.Builder
setDescription(description: String?)

Sets the description of the action, such as "Call".

PotentialAction.Builder
setName(name: String?)

Sets the name of the action.

PotentialAction.Builder
setUri(uri: String?)

Sets the deeplink URI of the Action.

Public constructors

Builder

Added in 1.1.0-alpha04
Builder()

Constructor for PotentialAction.Builder.

As PotentialAction is used as a DocumentProperty of Thing, it does not need an id or namespace.

Builder

Added in 1.1.0-alpha04
Builder(potentialAction: PotentialAction)

Constructor with all the existing values.

As PotentialAction is used as a DocumentProperty of Thing, it does not need an id or namespace.

Public functions

build

Added in 1.1.0-alpha04
fun build(): PotentialAction

Builds the PotentialAction.

setDescription

Added in 1.1.0-alpha04
fun setDescription(description: String?): PotentialAction.Builder

Sets the description of the action, such as "Call".

setName

Added in 1.1.0-alpha04
fun setName(name: String?): PotentialAction.Builder

Sets the name of the action.

setUri

Added in 1.1.0-alpha04
fun setUri(uri: String?): PotentialAction.Builder

Sets the deeplink URI of the Action.

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.