muzei-api / com.google.android.apps.muzei.api.provider / ProviderClient / addArtwork

addArtwork

abstract fun addArtwork(artwork: Artwork): Uri?

Add a new piece of artwork to the MuzeiArtProvider.

Parameters

artwork - The artwork to add

Return
The URI of the newly added artwork or null if the insert failed

abstract fun addArtwork(artwork: Iterable<Artwork>): List<Uri>

Add multiple artwork as a batch operation to the MuzeiArtProvider.

Parameters

artwork - The artwork to add

Return
The URIs of the newly added artwork or an empty List if the insert failed.