java.lang.Object
uk.co.caprica.vlcj.player.list.ListApi
Behaviour pertaining to the list of media items.
-
Method Summary
Modifier and TypeMethodDescriptionevents()Delegated behaviour pertaining to the associated media list events.booleanisValid()Is the media list valid?media()Delegated behaviour pertaining to the associated media list items.Create a newMediaListfor the associated media list.Create a newMediaListReffor the associated media list.voidsetMediaList(MediaListRef mediaListRef) Set a new media list.
-
Method Details
-
setMediaList
Set a new media list.The supplied
MediaListRefis not kept by this component and must be released by the caller when the caller no longer has any use for it.- Parameters:
mediaListRef- media list
-
isValid
public boolean isValid()Is the media list valid?This method could be used to check there is a list before using the various behaviours.
- Returns:
trueif there is a valid list;falseif there is not
-
events
Delegated behaviour pertaining to the associated media list events.- Returns:
- events behaviour, may be
nullif there is currently no media list
-
media
Delegated behaviour pertaining to the associated media list items.- Returns:
- item behaviour, may be
nullif there is currently no media list
-
newMediaList
Create a newMediaListfor the associated media list.The caller must release the returned
MediaListwhen it has no further use for it.- Returns:
- media list reference
-
newMediaListRef
Create a newMediaListReffor the associated media list.The caller must release the returned
MediaListRefwhen it has no further use for it.- Returns:
- media list reference
-