Property

GLANCE_OPTION_APPWIDGET_FORCE_BACKEND

Debug flags to force Glance to use either the RemoteView or RemoteCompose backends.

Source set: Android
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
public const val GLANCE_OPTION_APPWIDGET_FORCE_BACKEND: String =
    "androidx.glance.appwidget.forceBackend"

Debug flags to force Glance to use either the RemoteView or RemoteCompose backends. Pass in the appWidgetOptions bundle to force glance to use either remote views or remote compose. This is intended for debugging, eg, to see if a widget displays the same using both options.

Set to true to force remote views.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: