#import <VLCMediaList.h>
◆ addMedia:()
- (NSInteger) addMedia: |
|
(VLCMedia *) |
media |
|
add a media to a read-write list
- Parameters
-
media | the media object to add |
- Returns
- the index of the newly added media
- Note
- this function silently fails if the list is read-only
◆ indexOfMedia:()
- (NSInteger) indexOfMedia: |
|
(VLCMedia *) |
media |
|
retrieve the position of a media item
- Parameters
-
media | the media object to search for |
- Returns
- the index position of the media in the list or -1 if not found
◆ initWithArray:()
- (instancetype) initWithArray: |
|
(NSArray *) |
array |
|
◆ insertMedia:atIndex:()
- (void) insertMedia: |
|
(VLCMedia *) |
media |
atIndex: |
|
(NSInteger) |
index |
|
|
| |
add a media to a read-write list at a given position
- Parameters
-
media | the media object to add |
index | the index where to add the given media |
- Note
- this function silently fails if the list is read-only
◆ lock()
lock the media list from being edited by another thread
◆ mediaAtIndex:()
- (VLCMedia *) mediaAtIndex: |
|
(NSInteger) |
index |
|
retrieve a media from a given position
- Parameters
-
index | the index of the media you want |
- Returns
- the media object
◆ removeMediaAtIndex:()
- (void) removeMediaAtIndex: |
|
(NSInteger) |
index |
|
remove a media from a given position
- Parameters
-
index | the index of the media to remove |
- Note
- this function silently fails if the list is read-only
◆ unlock()
unlock the media list from being edited by another thread
◆ count
count number of media items in the list
- Returns
- the number of media objects
◆ delegate
delegate property to listen to addition/removal events
◆ isReadOnly
read-only property to check if the media list is writable or not
- Returns
- boolean value if the list is read-only
The documentation for this class was generated from the following file: