SpotifySdkPlugin class
SpotifySdkPlugin is the web implementation of the Spotify SDK plugin.
Constructors
- SpotifySdkPlugin(StreamController playerContextEventController, StreamController playerStateEventController, StreamController playerCapabilitiesEventController, StreamController userStateEventController, StreamController connectionStatusEventController)
- constructor
Properties
- connectionStatusEventController → StreamController
-
connection status event stream controller
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- playerCapabilitiesEventController → StreamController
-
player capabilities event stream controller
final
- playerContextEventController → StreamController
-
player context event stream controller
final
- playerStateEventController → StreamController
-
player state event stream controller
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- userStateEventController → StreamController
-
user state event stream controller
final
Methods
-
handleMethodCall(
MethodCall call) → Future - handles method coming through the method channel
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toggleRepeat(
{bool? state}) → Future - Toggles repeat on the current player.
-
toggleShuffle(
{bool? state}) → Future - Toggles shuffle on the current player.
-
toPlayerContext(
WebPlaybackState? state) → PlayerContext? - Converts a native WebPlaybackState to the library PlayerContext
-
toPlayerState(
WebPlaybackState? state) → PlayerState? - Converts a native WebPlaybackState to the library PlayerState
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- tokenRefreshURL ↔ String?
-
getter/setter pair
- tokenSwapURL ↔ String?
-
getter/setter pair
Static Methods
-
registerWith(
Registrar registrar) → void - registers plugin method channels
Constants
- defaultScopes → const String
- Default scopes that are required for Web SDK to work
- errorAuthenticationTokenError → const String
- authentication token error id
- spotifySdkUrl → const String
- spotify sdk url