Created
September 18, 2019 16:43
-
-
Save ParkSangGwon/002a357961884b3701ea122cf91f0e7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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