QueueManager
public class QueueManager
The QueueManager class is responsible for managing the playback queue of a Player instance.
It provides methods to check the availability of previous and next items in the queue
and to control playback by moving to the next or previous item.
-
Indicates whether there is a previous item in the player’s queue.
This property returns
trueif there is a previous item available in the queue, andfalseif there is no previous item or if the player isnil.Declaration
Swift
public var hasPrevious: Bool { get } -
Indicates whether there is a next item in the player’s queue.
This property returns
trueif there is a next item available in the queue, andfalseif there is no next item or if the player isnil.Declaration
Swift
public var hasNext: Bool { get } -
Returns currently playing items in the queue
Declaration
Swift
public var currentItem: QueueItem? { get } -
Returns all queue items
Declaration
Swift
public var items: [QueueItem] { get } -
Plays the next item in the queue, if available.
This method instructs the player’s queue manager to play the next item in the queue. If the player or queue manager is
nil, or there is no next item in the queue this method has no effect.Declaration
Swift
public func playNext() -
Plays the previous item in the queue, if available.
This method instructs the player’s queue manager to play the previous item in the queue. If the player or queue manager is
nil, or there is no previous item in the queue this method has no effect.Declaration
Swift
public func playPrevious()