abstract class NativePluginProvider : ContentProvider
Base class for a native plugin provider. A native plugin provider offers read-only access to files that are required to run a plugin, such as binary files and other configuration files. To create a native plugin provider, extend this class, implement the abstract methods, and add it to your manifest like this:
NativePluginProvider()
Base class for a native plugin provider. A native plugin provider offers read-only access to files that are required to run a plugin, such as binary files and other configuration files. To create a native plugin provider, extend this class, implement the abstract methods, and add it to your manifest like this: |
open fun call(method: String, arg: String?, extras: Bundle?): Bundle? |
|
open fun delete(uri: Uri, selection: String?, selectionArgs: Array<out String>?): Int |
|
open fun getExecutable(): String
Returns executable entry absolute path. This is used for fast mode initialization where ss-local launches your native binary at the path given directly. In order for this to work, plugin app is encouraged to have the following in its AndroidManifest.xml: |
|
open fun getType(uri: Uri): String? |
|
open fun insert(uri: Uri, values: ContentValues?): Uri? |
|
open fun onCreate(): Boolean |
|
abstract fun openFile(uri: Uri): ParcelFileDescriptoropen fun openFile(uri: Uri, mode: String): ParcelFileDescriptor |
|
abstract fun populateFiles(provider: PathProvider): Unit
Provide all files needed for native plugin. |
|
open fun query(uri: Uri, projection: Array<out String>?, selection: String?, selectionArgs: Array<out String>?, sortOrder: String?): Cursor? |
|
open fun update(uri: Uri, values: ContentValues?, selection: String?, selectionArgs: Array<out String>?): Int |