@JvmStatic fun getProviderClient(context: Context, provider: Class<out MuzeiArtProvider>): ProviderClient
Creates a new ProviderClient for accessing the given MuzeiArtProvider from anywhere in your application.
context
- Context used to construct the ProviderClient.
provider
- The MuzeiArtProvider you need a ProviderClient for.
Return
a ProviderClient suitable for accessing the MuzeiArtProvider.
fun <reified Provider : MuzeiArtProvider> getProviderClient(context: Context): ProviderClient
Creates a new ProviderClient for accessing the given MuzeiArtProvider from anywhere in your application.
context
- Context used to construct the ProviderClient.
Provider
- The subclass of MuzeiArtProvider you need a ProviderClient for.
Return
a ProviderClient suitable for accessing the MuzeiArtProvider.
@JvmStatic fun getProviderClient(context: Context, authority: String): ProviderClient
Creates a new ProviderClient for accessing the given MuzeiArtProvider from anywhere in your application.
context
- Context used to construct the ProviderClient.
authority
- The MuzeiArtProvider you need a ProviderClient for.
Return
a ProviderClient suitable for accessing the MuzeiArtProvider.