GlanceAdaptiveAction

abstract class GlanceAdaptiveAction


Base class for user interaction actions attached to interactive androidx.glance.adaptive.core.templates.GlanceAdaptiveTemplate elements.

Subclasses (CallbackAction, LaunchAction, DeeplinkAction) describe the action to perform when the user taps an element, and the library translates it into the appropriate host trigger for each target surface.

Summary

Nested types

Invokes actionCallbackClass in the background with parameters when tapped.

Opens uri via an android.content.Intent.ACTION_VIEW activity intent when tapped.

Launches targetActivityClass with parameters as intent extras when tapped.