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

getContentUri

@JvmStatic fun getContentUri(authority: String): Uri

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

This does not check for the validity of the MuzeiArtProvider. You can use PackageManager.resolveContentProvider passing in the authority if you need to confirm the authority is valid.

Parameters

authority - The MuzeiArtProvider you need a content URI for

Return
The content URI for the MuzeiArtProvider

See Also

MuzeiArtProvider.contentUri