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.

T
setDescription(description: String?)

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

T
setName(name: String?)

Sets the name of the action.

T
setUri(uri: String?)

Sets the deeplink URI of the Action.

Protected properties

String?
String?
String?

Public constructors

Builder

Added in 1.1.0
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
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
fun build(): PotentialAction

Builds the PotentialAction.

setDescription

Added in 1.1.0
fun setDescription(description: String?): T

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

setName

Added in 1.1.0
fun setName(name: String?): T

Sets the name of the action.

setUri

Added in 1.1.0
fun setUri(uri: String?): T

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.

Protected properties

mDescription

protected val mDescriptionString?

mName

protected val mNameString?

mUri

protected val mUriString?