DefaultLayoutPolicy

class DefaultLayoutPolicy(browsableHint: ContentStyle? = null, playableHint: ContentStyle? = null) : LayoutPolicy

A LayoutPolicy that uses ContentStyles to determine the right ItemType for an IviMediaItem.

Parameters

browsableHint

A presentation hint for browsable items.

playableHint

A presentation hint for playable items.

Constructors

Link copied to clipboard
fun DefaultLayoutPolicy(browsableHint: ContentStyle? = null, playableHint: ContentStyle? = null)

Functions

Link copied to clipboard
open override fun getItemViewType(mediaItem: IviMediaItem): ListGroupItem.ItemType

Gets ItemType corresponding to mediaItem.