SliceProviderWithCallbacks

abstract class SliceProviderWithCallbacks<T : SliceProviderWithCallbacks<SliceProviderWithCallbacks<*>>!> : SliceProvider, CallbackReceiver<T>, CallbackBase<T>
kotlin.Any
   ↳ android.content.ContentProvider
   ↳ androidx.slice.SliceProvider
   ↳ androidx.slice.SliceProviderWithCallbacks

Version of SliceProvider 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 SliceProvider 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

Inherited functions

Public constructors

<init>

SliceProviderWithCallbacks()

Version of SliceProvider 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