Editor Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | PlayList.h |
Overview
Editor is part of every playlist that can be used to modify a playlist and has built in handy function to make your work easier. To make any changes to a playlist final do not forget to call save.
– next
required method
Get the next Item in the play list
- (Audiofile *_Nullable)nextDeclared In
PlayList.h
– incrementCurrent
required method
increment Current Item
- (Audiofile *_Nullable)incrementCurrentDeclared In
PlayList.h
– isCurrentLast
required method
returns true if last item is current
- (BOOL)isCurrentLastReturn Value
true if last item is current
Declared In
PlayList.h
– first
required method
Get the first Item in the play list
- (Audiofile *_Nullable)firstDeclared In
PlayList.h
– count
required method
Get the first Item in the play list
- (NSUInteger)countDeclared In
PlayList.h
– last
required method
Get the last Item in the play list
- (Audiofile *_Nullable)lastDeclared In
PlayList.h
– shufflePlaylist
required method
Shuffle the playlist in random order
- (void)shufflePlaylistDeclared In
PlayList.h
– viewPlayList
required method
View current playlist as an NSArray
- (NSArray<Audiofile*> *_Nullable)viewPlayListDeclared In
PlayList.h
– clearPlaylist
required method
Clear all items from the playlist
- (void)clearPlaylistDeclared In
PlayList.h
– addFilestoPlaylist:
required method
Add files to Playlist
- (void)addFilestoPlaylist:(NSArray<Audiofile*> *_Nonnull)filesDeclared In
PlayList.h
– addFiletoPlaylist:
required method
Add a single file
- (void)addFiletoPlaylist:(Audiofile *_Nonnull)fileDeclared In
PlayList.h
– addFiletoPlaylist:atIndex:
required method
Add a single file at an index
- (void)addFiletoPlaylist:(Audiofile *_Nonnull)file atIndex:(NSUInteger)indexDeclared In
PlayList.h
– removeFromPlaylist:
required method
Remove an item fron playlist
- (void)removeFromPlaylist:(Audiofile *_Nonnull)fileDeclared In
PlayList.h
– saveChanges
required method
Save changes to the playlist, this should be called everytime any changes are made, even on the current playlist
- (void)saveChangesDeclared In
PlayList.h
– moveItem:toIndex:
required method
Change the location of items inside the playlist.
- (void)moveItem:(Audiofile *_Nonnull)file toIndex:(int)indexDeclared In
PlayList.h
– getPlayListAsArray
required method
Get a copy of list as an NSArray
- (NSArray *_Nonnull)getPlayListAsArrayDeclared In
PlayList.h