ActionBuilders.AndroidActivity.Builder


public final class ActionBuilders.AndroidActivity.Builder


Builder for AndroidActivity

Summary

Public constructors

Creates an instance of Builder.

Public methods

@NonNull ActionBuilders.AndroidActivity.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
addKeyToExtraMapping(
    @NonNull String key,
    @NonNull ActionBuilders.AndroidExtra extra
)

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

@NonNull ActionBuilders.AndroidActivity

Builds an instance from accumulated values.

@NonNull ActionBuilders.AndroidActivity.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setClassName(@NonNull String className)

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

@NonNull ActionBuilders.AndroidActivity.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setPackageName(@NonNull String packageName)

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

Public constructors

Builder

Added in 1.0.0
public Builder()

Creates an instance of Builder.

Public methods

addKeyToExtraMapping

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull ActionBuilders.AndroidActivity.Builder addKeyToExtraMapping(
    @NonNull String key,
    @NonNull ActionBuilders.AndroidExtra extra
)

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

build

Added in 1.0.0
public @NonNull ActionBuilders.AndroidActivity build()

Builds an instance from accumulated values.

setClassName

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull ActionBuilders.AndroidActivity.Builder setClassName(@NonNull String className)

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

setPackageName

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull ActionBuilders.AndroidActivity.Builder setPackageName(@NonNull String packageName)

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