muzei-api / / Artwork / fromCursor


@JvmStatic fun fromCursor(data: Cursor): Artwork

Converts the current row of the given Cursor to an Artwork object. The assumption is that this Cursor was retrieve from a MuzeiArtProvider and has the columns listed in ProviderContract.Artwork.


data - A Cursor retrieved from a MuzeiArtProvider, already positioned at the correct row you wish to convert.

a valid Artwork with values filled in from the ProviderContract.Artwork columns.