LocalStatsWidget

class LocalStatsWidget : GlanceAppWidget, KoinComponent(source)

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val previewSizeMode: PreviewSizeMode
Link copied to clipboard
open override val sizeMode: SizeMode
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open fun getKoin(): Koin
Link copied to clipboard
open override fun onCompositionError(context: Context, glanceId: GlanceId, appWidgetId: Int, throwable: Throwable)

Renders our own last-resort UI when the Glance composition throws, replacing Glance's default "Can't show content" layout, and logs the failure so a broken widget stops being silent.

Link copied to clipboard
open suspend fun onDelete(context: Context, glanceId: GlanceId)
Link copied to clipboard
open suspend override fun provideGlance(context: Context, id: GlanceId)
Link copied to clipboard
open suspend override fun providePreview(context: Context, widgetCategory: Int)
Link copied to clipboard
suspend fun update(context: Context, id: GlanceId)