AppWidgetProviderWithCallbacks

open class AppWidgetProviderWithCallbacks<T : CallbackReceiver<Any!>!> : AppWidgetProvider, CallbackReceiver<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 Unit
onReceive(context: Context!, intent: Intent!)

open RemoteCallback!
toRemoteCallback(cls: Class<T>!, args: Bundle!, method: String!)

open T

Public constructors

<init>

AppWidgetProviderWithCallbacks()

Version of AppWidgetProvider that implements a CallbackReceiver.

Public methods

onReceive

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

toRemoteCallback

open fun toRemoteCallback(cls: Class<T>!, args: Bundle!, method: String!): RemoteCallback!

createRemoteCallback

open fun createRemoteCallback(context: Context!): T