GlanceWearWidgetService
abstract class GlanceWearWidgetService : LifecycleService
| kotlin.Any | |||||
| ↳ | android.content.Context | ||||
| ↳ | android.content.ContextWrapper | ||||
| ↳ | android.app.Service | ||||
| ↳ | androidx.lifecycle.LifecycleService | ||||
| ↳ | androidx.glance.wear.GlanceWearWidgetService |
Service used for communication between the Host and a Widget Provider.
This should be typically used as:
class MyGlanceWearWidgetService : GlanceWearWidgetService() {
override val widget: GlanceWearWidget = MyGlanceWearWidget()
}
Summary
Constants |
|
|---|---|
const String |
Intent action for binding to a Widget Service. |
Public constructors |
|---|
Public functions |
|
|---|---|
final IBinder? |
|
open Unit |
|
open Unit |
|
open Int |
@CallSuper |
Public properties |
|
|---|---|
abstract GlanceWearWidget |
Instance of |
Inherited properties |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Constants
ACTION_BIND_WIDGET_PROVIDER
const val ACTION_BIND_WIDGET_PROVIDER: String
Intent action for binding to a Widget Service.
Public constructors
Public functions
Public properties
widget
Added in 1.0.0-alpha18
abstract val widget: GlanceWearWidget
Instance of GlanceWearWidget associated with this provider.