muzei-api / com.google.android.apps.muzei.api.provider / Artwork / fromCursor

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.

Parameters

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

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