Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class TedContentProvider : ContentProvider() {
override fun onCreate(): Boolean {
Log.d("ted", "TedContentProvider::onCreate")
val application = context as Application
Stetho.initializeWithDefaults(application)
startKoin {
androidContext(application)
}
return true
}
override fun insert(uri: Uri, values: ContentValues?): Uri? {
throw UnsupportedOperationException()
}
override fun query(
uri: Uri,
projection: Array<out String>?,
selection: String?,
selectionArgs: Array<out String>?,
sortOrder: String?
): Cursor? {
throw UnsupportedOperationException()
}
override fun update(
uri: Uri,
values: ContentValues?,
selection: String?,
selectionArgs: Array<out String>?
): Int {
throw UnsupportedOperationException()
}
override fun delete(uri: Uri, selection: String?, selectionArgs: Array<out String>?): Int {
throw UnsupportedOperationException()
}
override fun getType(uri: Uri): String {
throw UnsupportedOperationException()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment