Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

AppWidgetProviderWithCallbacks

open class AppWidgetProviderWithCallbacks<T : CallbackReceiver<Any!>!> : AppWidgetProvider, CallbackReceiver<T>, CallbackBase<T>
kotlin.Any
   ↳ android.content.BroadcastReceiver
   ↳ android.appwidget.AppWidgetProvider
   ↳ androidx.remotecallback.AppWidgetProviderWithCallbacks

Version of AppWidgetProvider that implements a CallbackReceiver.

Summary

Public constructors

Version of AppWidgetProvider that implements a CallbackReceiver.

Public methods

open T

open Unit
onReceive(context: Context!, intent: Intent!)

Public constructors

<init>

AppWidgetProviderWithCallbacks()

Version of AppWidgetProvider that implements a CallbackReceiver.

Public methods

createRemoteCallback

open fun createRemoteCallback(context: Context!): T

onReceive

open fun onReceive(context: Context!, intent: Intent!): Unit