spotifywebapipython.models.playeractions

@export
class PlayerActions:

Spotify Web API PlayerActions object.

PlayerActions(root: dict = None)

Initializes a new instance of the class.

Arguments:
  • root (dict): Spotify Web API JSON response in dictionary format, used to load object attributes; otherwise, None to not load attributes.
InterruptingPlayback: bool

Interrupting playback. Optional field.

Pausing: bool

Pausing. Optional field.

Resuming: bool

Resuming. Optional field.

Seeking: bool

Seeking playback location. Optional field.

SkippingNext: bool

Skipping to the next context. Optional field.

SkippingPrev: bool

Skipping to the previous context. Optional field.

TogglingRepeatContext: bool

Toggling repeat context flag. Optional field.

TogglingShuffle: bool

Toggling shuffle flag. Optional field.

TogglingRepeatTrack: bool

Toggling repeat track flag. Optional field.

TransferringPlayback: bool

Transfering playback between devices. Optional field.

def ToDictionary(self) -> dict:

Returns a dictionary representation of the class.

def ToString(self) -> str:

Returns a displayable string representation of the class.