ActionBuilders

public final class ActionBuilders
extends Object

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


Builders for actions that can be performed when a user interacts with layout elements.

Summary

Nested classes

interface ActionBuilders.Action

Interface defining an action that can be used by a layout element. 

class ActionBuilders.AndroidActivity

A launch action to send an intent to an Android activity. 

class ActionBuilders.AndroidBooleanExtra

A boolean value that can be added to an Android intent's extras. 

class ActionBuilders.AndroidDoubleExtra

A double value that can be added to an Android intent's extras. 

interface ActionBuilders.AndroidExtra

Interface defining an item that can be included in the extras of an intent that will be sent to an Android activity. 

class ActionBuilders.AndroidIntExtra

An integer value that can be added to an Android intent's extras. 

class ActionBuilders.AndroidLongExtra

A long value that can be added to an Android intent's extras. 

class ActionBuilders.AndroidStringExtra

A string value that can be added to an Android intent's extras. 

class ActionBuilders.LaunchAction

An action used to launch another activity on the system. 

class ActionBuilders.LoadAction

An action used to load (or reload) the tile contents. 

Public methods

static ActionBuilders.AndroidBooleanExtra booleanExtra(boolean value)

Shortcut for building an ActionBuilders.AndroidBooleanExtra.

static ActionBuilders.AndroidDoubleExtra doubleExtra(double value)

Shortcut for building an ActionBuilders.AndroidDoubleExtra.

static ActionBuilders.AndroidIntExtra intExtra(int value)

Shortcut for building an ActionBuilders.AndroidIntExtra.

static ActionBuilders.AndroidLongExtra longExtra(long value)

Shortcut for building an ActionBuilders.AndroidLongExtra.

static ActionBuilders.AndroidStringExtra stringExtra(String value)

Shortcut for building an ActionBuilders.AndroidStringExtra.

Inherited methods

Public methods

booleanExtra

public static ActionBuilders.AndroidBooleanExtra booleanExtra (boolean value)

Shortcut for building an ActionBuilders.AndroidBooleanExtra.

Parameters
value boolean

Returns
ActionBuilders.AndroidBooleanExtra

doubleExtra

public static ActionBuilders.AndroidDoubleExtra doubleExtra (double value)

Shortcut for building an ActionBuilders.AndroidDoubleExtra.

Parameters
value double

Returns
ActionBuilders.AndroidDoubleExtra

intExtra

public static ActionBuilders.AndroidIntExtra intExtra (int value)

Shortcut for building an ActionBuilders.AndroidIntExtra.

Parameters
value int

Returns
ActionBuilders.AndroidIntExtra

longExtra

public static ActionBuilders.AndroidLongExtra longExtra (long value)

Shortcut for building an ActionBuilders.AndroidLongExtra.

Parameters
value long

Returns
ActionBuilders.AndroidLongExtra

stringExtra

public static ActionBuilders.AndroidStringExtra stringExtra (String value)

Shortcut for building an ActionBuilders.AndroidStringExtra.

Parameters
value String

Returns
ActionBuilders.AndroidStringExtra