Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

ContentProviderWithCallbacks

abstract class ContentProviderWithCallbacks<T : ContentProviderWithCallbacks<ContentProviderWithCallbacks<*>>!> : ContentProvider, CallbackReceiver<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 Bundle!
call(method: String!, arg: String!, extras: Bundle!)

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

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

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

call

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

toRemoteCallback

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

attachInfo

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

createRemoteCallback

open fun createRemoteCallback(context: Context!): T