ActionBuilders.AndroidActivity.Builder

public static final class ActionBuilders.AndroidActivity.Builder
extends Object

java.lang.Object
   ↳ androidx.wear.tiles.builders.ActionBuilders.AndroidActivity.Builder


Builder for ActionBuilders.AndroidActivity

Summary

Public methods

ActionBuilders.AndroidActivity.Builder addKeyToExtraMapping(String key, ActionBuilders.AndroidExtra extra)

Adds an entry into the extras to be included in the intent.

ActionBuilders.AndroidActivity.Builder addKeyToExtraMapping(String key, ActionBuilders.AndroidExtra.Builder extraBuilder)

Adds an entry into the extras to be included in the intent.

ActionBuilders.AndroidActivity build()

Builds an instance from accumulated values.

ActionBuilders.AndroidActivity.Builder setClassName(String className)

Sets the fully qualified class name (including the package) to send the intent to, for example, "com.google.weather.WeatherOverviewActivity".

ActionBuilders.AndroidActivity.Builder setPackageName(String packageName)

Sets the package name to send the intent to, for example, "com.google.weather".

Inherited methods

Public methods

addKeyToExtraMapping

public ActionBuilders.AndroidActivity.Builder addKeyToExtraMapping (String key, 
                ActionBuilders.AndroidExtra extra)

Adds an entry into the extras to be included in the intent.

Parameters
key String

extra ActionBuilders.AndroidExtra

Returns
ActionBuilders.AndroidActivity.Builder

addKeyToExtraMapping

public ActionBuilders.AndroidActivity.Builder addKeyToExtraMapping (String key, 
                ActionBuilders.AndroidExtra.Builder extraBuilder)

Adds an entry into the extras to be included in the intent.

Parameters
key String

extraBuilder ActionBuilders.AndroidExtra.Builder

Returns
ActionBuilders.AndroidActivity.Builder

build

public ActionBuilders.AndroidActivity build ()

Builds an instance from accumulated values.

Returns
ActionBuilders.AndroidActivity

setClassName

public ActionBuilders.AndroidActivity.Builder setClassName (String className)

Sets the fully qualified class name (including the package) to send the intent to, for example, "com.google.weather.WeatherOverviewActivity".

Parameters
className String

Returns
ActionBuilders.AndroidActivity.Builder

setPackageName

public ActionBuilders.AndroidActivity.Builder setPackageName (String packageName)

Sets the package name to send the intent to, for example, "com.google.weather".

Parameters
packageName String

Returns
ActionBuilders.AndroidActivity.Builder