Companion

Functions

Link copied to clipboard
inline fun <T : SpotifyUri> canBeType(input: String): Boolean

This function returns whether ot not the given input CAN be a given type.

Link copied to clipboard
operator fun invoke(input: String): SpotifyUri

Creates a abstract SpotifyUri of given input. Doesn't allow ambiguity by disallowing creation by id.

Link copied to clipboard
inline fun <T : SpotifyUri> isType(input: String): Boolean

This function returns whether or not the given input IS a given type.

Link copied to clipboard
inline fun <T : SpotifyUri> safeInitiate(uri: String, ctor: (String) -> T): T?

This function safely instantiates a SpotifyUri from given constructor.