Provider

abstract class Provider

The base class for all providers. Note that this differs from ProviderApi, this holds every the detailed information of the provider.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
lateinit var __filename: String

The filename of the provider.

Link copied to clipboard

A ProviderManifest instance that contains the provider's information.

Link copied to clipboard
open val name: String

The name of the provider.

Link copied to clipboard

A Resources instance that is used to hold all of the app's resources.

Link copied to clipboard

A ProviderSettings instance that holds the provider's settings/preferences.

Functions

Link copied to clipboard
abstract fun getApi(context: Context, client: OkHttpClient): ProviderApi

Called when the Provider is loaded. Should return a ProviderApi instance.

Link copied to clipboard
open fun onUnload(context: Context?)

Called before the Provider is unloaded

Link copied to clipboard

The custom settings screen composable to be displayed when the user clicks the provider. Override this to have a settings screen.