Companion

object Companion

Functions

canBeType
Link copied to clipboard
common
inline fun <T : SpotifyUri> canBeType(input: String): Boolean
This function returns whether ot not the given input CAN be a given type.
invoke
Link copied to clipboard
common
operator fun invoke(input: String): SpotifyUri
Creates a abstract SpotifyUri of given input.
isType
Link copied to clipboard
common
inline fun <T : SpotifyUri> isType(input: String): Boolean
This function returns whether or not the given input IS a given type.
safeInitiate
Link copied to clipboard
common
inline fun <T : SpotifyUri> safeInitiate(uri: String, ctor: (String) -> T): T?
This function safely instantiates a SpotifyUri from given constructor.

Sources

common source
Link copied to clipboard