GlanceAdaptiveAction.LaunchAction

class GlanceAdaptiveAction.LaunchAction : GlanceAdaptiveAction


Launches targetActivityClass with parameters as intent extras when tapped.

Summary

Public companion functions

inline operator GlanceAdaptiveAction.LaunchAction
<T : Activity> invoke(parameters: Bundle)

Creates a LaunchAction that starts T with parameters as intent extras when tapped.

Public constructors

LaunchAction(targetActivityClass: Class<Activity>, parameters: Bundle)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Bundle

optional Bundle extras attached to the launch intent.

Class<Activity>

Activity class to start, declared in the application's AndroidManifest.xml.

Public companion functions

invoke

inline operator fun <T : Activity> invoke(parameters: Bundle = Bundle.EMPTY): GlanceAdaptiveAction.LaunchAction

Creates a LaunchAction that starts T with parameters as intent extras when tapped.

Parameters
<T : Activity>

Activity class to start, declared in the application's AndroidManifest.xml.

parameters: Bundle = Bundle.EMPTY

optional Bundle extras attached to the launch intent.

Public constructors

LaunchAction

Added in 1.0.0-alpha06
LaunchAction(
    targetActivityClass: Class<Activity>,
    parameters: Bundle = Bundle.EMPTY
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

parameters

Added in 1.0.0-alpha06
val parameters: Bundle

optional Bundle extras attached to the launch intent.

targetActivityClass

Added in 1.0.0-alpha06
val targetActivityClass: Class<Activity>

Activity class to start, declared in the application's AndroidManifest.xml.