OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
spotify.spotify_state.SpotifyState Class Reference

Immutable snapshot of Spotify availability and playback metadata. More...

Public Member Functions

float|None progress_percent (self)
 Return clamped track progress.

Detailed Description

Immutable snapshot of Spotify availability and playback metadata.

Member Function Documentation

◆ progress_percent()

float | None spotify.spotify_state.SpotifyState.progress_percent ( self)

Return clamped track progress.

Returns
Percentage in the inclusive range 0 through 100, or None when progress or a positive duration is unavailable.

The documentation for this class was generated from the following file:
  • controllers/spotify/spotify_state.py