muzei-api / com.google.android.apps.muzei.api.provider / ProviderContract

ProviderContract

object ProviderContract

Contract between Muzei and Muzei Art Providers, containing the definitions for all supported URIs and columns as well as helper methods to make it easier to work with the provided data.

Types

Artwork

Constants and helper methods for working with the Artwork associated with a MuzeiArtProvider.

object Artwork

Functions

getContentUri

Retrieve the content URI for the given MuzeiArtProvider, allowing you to build custom queries, inserts, updates, and deletes using a ContentResolver.

fun getContentUri(authority: String): Uri

getProviderClient

Creates a new ProviderClient for accessing the given MuzeiArtProvider from anywhere in your application.

fun getProviderClient(context: Context, provider: Class<out MuzeiArtProvider>): ProviderClient
fun <Provider : MuzeiArtProvider> getProviderClient(context: Context): ProviderClient
fun getProviderClient(context: Context, authority: String): ProviderClient