public static final class

Action.Builder

extends Thing.Builder
java.lang.Object
   ↳ com.google.android.gms.appindexing.Thing.Builder
     ↳ com.google.android.gms.appindexing.Action.Builder

Class Overview

Create a builder for an Action.

Summary

Public Constructors
Action.Builder(String actionType)
Public Methods
Action build()
Build the Action object.
Action.Builder put(String key, Thing value)
Specify optional properties of the content.
Action.Builder put(String key, String value)
Specify optional properties of the content.
Action.Builder setName(String name)
Specify the name of the content.
Action.Builder setObject(Thing thing)
Specify the object of the action.
Action.Builder setUrl(Uri webUrl)
Specify the native app URL of the content.
[Expand]
Inherited Methods
From class com.google.android.gms.appindexing.Thing.Builder
From class java.lang.Object

Public Constructors

public Action.Builder (String actionType)

Public Methods

public Action build ()

Build the Action object.

public Action.Builder put (String key, Thing value)

Specify optional properties of the content.

Parameters
key The schema.org property. Must not be null.
value The value of the schema.org property represented as a Thing. If null, the value will be ignored.

public Action.Builder put (String key, String value)

Specify optional properties of the content.

Parameters
key The schema.org property. Must not be null.
value The value of the schema.org property. If null, the value will be ignored.

public Action.Builder setName (String name)

Specify the name of the content.

Parameters
name Name of the content.

public Action.Builder setObject (Thing thing)

Specify the object of the action.

public Action.Builder setUrl (Uri webUrl)

Specify the native app URL of the content.

Parameters
webUrl Set the deep-link in the App Indexing format.