public final class

PotentialAction.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.appsearch.builtintypes.PotentialAction.Builder

Overview

Builder for PotentialAction.

Summary

Constructors
publicBuilder()

Constructor for PotentialAction.Builder.

publicBuilder(PotentialAction potentialAction)

Constructor with all the existing values.

Methods
public PotentialActionbuild()

Builds the PotentialAction.

public PotentialAction.BuildersetDescription(java.lang.String description)

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

public PotentialAction.BuildersetName(java.lang.String name)

Sets the name of the action.

public PotentialAction.BuildersetUri(java.lang.String uri)

Sets the deeplink URI of the Action.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Constructor for PotentialAction.Builder.

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

public 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.

Methods

public PotentialAction.Builder setName(java.lang.String name)

Sets the name of the action.

public PotentialAction.Builder setDescription(java.lang.String description)

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

public PotentialAction.Builder setUri(java.lang.String uri)

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 object by calling with the deeplink URI. Creating a deeplink URI, and adding intent extras, can be done by building an intent and calling .

public PotentialAction build()

Builds the PotentialAction.