Google is committed to advancing racial equity for Black communities. See how.

ContentProviderWithCallbacks

abstract class ContentProviderWithCallbacks<T : ContentProviderWithCallbacks<ContentProviderWithCallbacks<*>>!> : ContentProvider, CallbackReceiver<T>, CallbackBase<T>
kotlin.Any
   ↳ android.content.ContentProvider
   ↳ androidx.remotecallback.ContentProviderWithCallbacks

Version of ContentProvider that can be used as a CallbackReceiver. Be sure to call the super of #call when unhandled to ensure callbacks are triggered.

Summary

Public constructors

Version of ContentProvider that can be used as a CallbackReceiver.

Public methods
open Unit
attachInfo(context: Context!, info: ProviderInfo!)

open Bundle?
call(method: String, arg: String?, extras: Bundle?)

open T

Public constructors

<init>

ContentProviderWithCallbacks()

Version of ContentProvider that can be used as a CallbackReceiver. Be sure to call the super of #call when unhandled to ensure callbacks are triggered.

Public methods

attachInfo

open fun attachInfo(
    context: Context!,
    info: ProviderInfo!
): Unit

call

open fun call(
    method: String,
    arg: String?,
    extras: Bundle?
): Bundle?

createRemoteCallback

open fun createRemoteCallback(context: Context!): T