toImmutableCollectionUri

fun String.toImmutableCollectionUri(): ImmutableCollectionUri

Convert an immutable collection (album/show) id or uri string to an ImmutableCollectionUri object. If an id is provided or the input is ambiguous, AlbumUri is preferred.

Note: it is preferable to use a more specific function (toAlbumUri, toShowUri) if possible.

Sources

(source)
Link copied to clipboard