DefaultCollectionPolicy

The default collection policy.

Constructors

Link copied to clipboard
constructor()

Inherited functions

Link copied to clipboard
open fun getFollowCollectionAction(mediaItem: IviMediaItem): BrowserAction<StringResolver?>?

Returns a BrowserAction to follow mediaItem as a collection, if mediaItem supports following, and null otherwise.

Link copied to clipboard
open fun getFollowCollectionIcon(mediaItem: IviMediaItem): DrawableResolver?

Returns an icon for the follow collection button, if mediaItem supports following, and null otherwise.

Link copied to clipboard

Returns a BrowserAction that can be used to determine if mediaItem is a followed collection. If mediaItem doesn't support the following action returns null.

Link copied to clipboard
open fun getUnfollowCollectionAction(mediaItem: IviMediaItem): BrowserAction<StringResolver?>?

Returns a BrowserAction to unfollow mediaItem as a collection, if mediaItem supports following, and null otherwise.

Link copied to clipboard
open fun isCollection(mediaItem: IviMediaItem): Boolean

Determines if a mediaItem is a collection. This can be used to open the collection panel instead of a normal browsing panel.