muzei-api / com.google.android.apps.muzei.api.provider / MuzeiArtProvider / setArtwork

setArtwork

fun setArtwork(artwork: Artwork): Uri?

Set the MuzeiArtProvider to only show the given artwork, deleting any other artwork previously added. Only in the cases where the artwork is successfully inserted will the other artwork be removed.

Parameters

artwork - The artwork to set

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

fun setArtwork(artwork: Iterable<Artwork>): List<Uri>

Set the MuzeiArtProvider to only show the given artwork, deleting any other artwork previously added. Only in the cases where the artwork is successfully inserted will the other artwork be removed.

Parameters

artwork - The artwork to set

Return
The URIs of the newly set artwork or an empty List if the inserts failed.