Protocols
The following protocols are available globally.
-
This protocol is adopted by the various features of the SDK.
Info:
It supplies a common syntax to acces the various features objects:
See moreSTPlayer,STSections,STHistory,STWishList,STBookmarked,STLibrary,STOffline. -
Use this protocol to observe the following events in the shared instance of
STPlayer: change of state, end of a track and failure in playing a track. Each observer has to be added to theSTPlayerObserverto be called.Usage Example:
class MyClass: STPlayerObserver { /../ } let myObject = MyClass() STPlayer.shared?.add(observer: myObject)
See more -
-
Protocols Reference