toSpotifyUri

fun String.toSpotifyUri(): SpotifyUri

Convert any (artist, PlayableUri, ImmutableCollectionUri, user, playlist) uri string to a SpotifyUri object. Ambiguity is not allowed.

Note: it is preferable to use a more specific function (toArtistUri, toPlayableUri, toImmutableCollectionUri, toUserUri, toPlaylistUri) if possible.

Sources

(source)
Link copied to clipboard