class MultiProcessConfig


This class specifies the components to be used when creating layouts for MultiProcessGlanceAppWidget.

Summary

Public companion functions

MultiProcessConfig
getDefault(context: Context)

Public constructors

MultiProcessConfig(
    remoteWorkerService: ComponentName,
    actionTrampolineActivity: ComponentName,
    invisibleActionTrampolineActivity: ComponentName,
    actionCallbackBroadcastReceiver: ComponentName,
    remoteViewsService: ComponentName
)

Public properties

ComponentName

Action callback BroadcastReceiver.

ComponentName

Action Trampoline Activity.

ComponentName

Invisible Action Trampoline Activity.

ComponentName

Glance RemoteViewsService.

ComponentName

The remote worker service used to run jobs for a MultiProcessGlanceAppWidget.

Public companion functions

getDefault

Added in 1.2.0-alpha01
fun getDefault(context: Context): MultiProcessConfig

Public constructors

MultiProcessConfig

Added in 1.2.0-alpha01
MultiProcessConfig(
    remoteWorkerService: ComponentName,
    actionTrampolineActivity: ComponentName,
    invisibleActionTrampolineActivity: ComponentName,
    actionCallbackBroadcastReceiver: ComponentName,
    remoteViewsService: ComponentName
)

Public properties

actionCallbackBroadcastReceiver

Added in 1.2.0-alpha01
val actionCallbackBroadcastReceiverComponentName

Action callback BroadcastReceiver. Must be set to run in the same process as androidx.glance.appwidget.GlanceAppWidgetReceiver and remoteWorkerService.

actionTrampolineActivity

Added in 1.2.0-alpha01
val actionTrampolineActivityComponentName

Action Trampoline Activity. Must be set to run in the same process as androidx.glance.appwidget.GlanceAppWidgetReceiver and remoteWorkerService.

invisibleActionTrampolineActivity

Added in 1.2.0-alpha01
val invisibleActionTrampolineActivityComponentName

Invisible Action Trampoline Activity. Must be set to run in the same process as androidx.glance.appwidget.GlanceAppWidgetReceiver and remoteWorkerService.

remoteViewsService

Added in 1.2.0-alpha01
val remoteViewsServiceComponentName

Glance RemoteViewsService. Must be set to run in the same process as androidx.glance.appwidget.GlanceAppWidgetReceiver and remoteWorkerService.

remoteWorkerService

Added in 1.2.0-alpha01
val remoteWorkerServiceComponentName

The remote worker service used to run jobs for a MultiProcessGlanceAppWidget. This must be set to run in the same android:process as the androidx.glance.appwidget.GlanceAppWidgetReceiver and Glance components.