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)next
Declared In
PlayList.h
– incrementCurrent
required method
increment Current Item
- (Audiofile *_Nullable)incrementCurrent
Declared In
PlayList.h
– isCurrentLast
required method
returns true if last item is current
- (BOOL)isCurrentLast
Return Value
true if last item is current
Declared In
PlayList.h
– first
required method
Get the first Item in the play list
- (Audiofile *_Nullable)first
Declared In
PlayList.h
– count
required method
Get the first Item in the play list
- (NSUInteger)count
Declared In
PlayList.h
– last
required method
Get the last Item in the play list
- (Audiofile *_Nullable)last
Declared In
PlayList.h
– shufflePlaylist
required method
Shuffle the playlist in random order
- (void)shufflePlaylist
Declared In
PlayList.h
– viewPlayList
required method
View current playlist as an NSArray
- (NSArray<Audiofile*> *_Nullable)viewPlayList
Declared In
PlayList.h
– clearPlaylist
required method
Clear all items from the playlist
- (void)clearPlaylist
Declared In
PlayList.h
– addFilestoPlaylist:
required method
Add files to Playlist
- (void)addFilestoPlaylist:(NSArray<Audiofile*> *_Nonnull)files
Declared In
PlayList.h
– addFiletoPlaylist:
required method
Add a single file
- (void)addFiletoPlaylist:(Audiofile *_Nonnull)file
Declared In
PlayList.h
– addFiletoPlaylist:atIndex:
required method
Add a single file at an index
- (void)addFiletoPlaylist:(Audiofile *_Nonnull)file atIndex:(NSUInteger)index
Declared In
PlayList.h
– removeFromPlaylist:
required method
Remove an item fron playlist
- (void)removeFromPlaylist:(Audiofile *_Nonnull)file
Declared 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)saveChanges
Declared In
PlayList.h
– moveItem:toIndex:
required method
Change the location of items inside the playlist.
- (void)moveItem:(Audiofile *_Nonnull)file toIndex:(int)index
Declared In
PlayList.h
– getPlayListAsArray
required method
Get a copy of list as an NSArray
- (NSArray *_Nonnull)getPlayListAsArray
Declared In
PlayList.h