ActionBuilders


public final class ActionBuilders


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

Summary

Nested types

@RequiresSchemaVersion(major = 1, minor = 0)
public interface ActionBuilders.Action

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

@RequiresSchemaVersion(major = 1, minor = 0)
public final class ActionBuilders.AndroidActivity

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

Builder for AndroidActivity

@RequiresSchemaVersion(major = 1, minor = 0)
public final class ActionBuilders.AndroidBooleanExtra implements ActionBuilders.AndroidExtra

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

Builder for AndroidBooleanExtra.

@RequiresSchemaVersion(major = 1, minor = 0)
public final class ActionBuilders.AndroidDoubleExtra implements ActionBuilders.AndroidExtra

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

Builder for AndroidDoubleExtra.

@RequiresSchemaVersion(major = 1, minor = 0)
public 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.

@RequiresSchemaVersion(major = 1, minor = 0)
public final class ActionBuilders.AndroidIntExtra implements ActionBuilders.AndroidExtra

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

Builder for AndroidIntExtra.

@RequiresSchemaVersion(major = 1, minor = 0)
public final class ActionBuilders.AndroidLongExtra implements ActionBuilders.AndroidExtra

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

Builder for AndroidLongExtra.

@RequiresSchemaVersion(major = 1, minor = 0)
public final class ActionBuilders.AndroidStringExtra implements ActionBuilders.AndroidExtra

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

Builder for AndroidStringExtra.

@RequiresSchemaVersion(major = 1, minor = 0)
public final class ActionBuilders.LaunchAction implements ActionBuilders.Action

An action used to launch another activity on the system.

Builder for LaunchAction.

@RequiresSchemaVersion(major = 1, minor = 0)
public final class ActionBuilders.LoadAction implements ActionBuilders.Action

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

Builder for LoadAction.

Public methods

static @NonNull ActionBuilders.AndroidBooleanExtra
booleanExtra(boolean value)

Shortcut for building an AndroidBooleanExtra.

static @NonNull ActionBuilders.AndroidDoubleExtra
doubleExtra(double value)

Shortcut for building an AndroidDoubleExtra.

static @NonNull ActionBuilders.AndroidIntExtra
intExtra(int value)

Shortcut for building an AndroidIntExtra.

static @NonNull ActionBuilders.LaunchAction
launchAction(@NonNull ComponentName activityComponentName)

Shortcut for building a LaunchAction.

static @NonNull ActionBuilders.LaunchAction
launchAction(
    @NonNull ComponentName activityComponentName,
    @NonNull Map<StringActionBuilders.AndroidExtra> intentExtras
)

Shortcut for building a LaunchAction with extras in the launch intent.

static @NonNull ActionBuilders.AndroidLongExtra
longExtra(long value)

Shortcut for building an AndroidLongExtra.

static @NonNull ActionBuilders.AndroidStringExtra

Shortcut for building an AndroidStringExtra.

Public methods

booleanExtra

Added in 1.0.0
public static @NonNull ActionBuilders.AndroidBooleanExtra booleanExtra(boolean value)

Shortcut for building an AndroidBooleanExtra.

doubleExtra

Added in 1.0.0
public static @NonNull ActionBuilders.AndroidDoubleExtra doubleExtra(double value)

Shortcut for building an AndroidDoubleExtra.

intExtra

Added in 1.0.0
public static @NonNull ActionBuilders.AndroidIntExtra intExtra(int value)

Shortcut for building an AndroidIntExtra.

launchAction

Added in 1.0.0
public static @NonNull ActionBuilders.LaunchAction launchAction(@NonNull ComponentName activityComponentName)

Shortcut for building a LaunchAction.

launchAction

Added in 1.0.0
public static @NonNull ActionBuilders.LaunchAction launchAction(
    @NonNull ComponentName activityComponentName,
    @NonNull Map<StringActionBuilders.AndroidExtra> intentExtras
)

Shortcut for building a LaunchAction with extras in the launch intent.

longExtra

Added in 1.0.0
public static @NonNull ActionBuilders.AndroidLongExtra longExtra(long value)

Shortcut for building an AndroidLongExtra.

stringExtra

Added in 1.0.0
public static @NonNull ActionBuilders.AndroidStringExtra stringExtra(@NonNull String value)

Shortcut for building an AndroidStringExtra.