Popularity

object Popularity : TuneableTrackAttribute<Int>

The popularity of the track. The value will be between 0 and 100, with 100 being the most popular. The popularity is calculated by algorithm and is based, in the most part, on the total number of plays the track has had and how recent those plays are. Note: When applying track relinking via the market parameter, it is expected to find relinked tracks with popularities that do not match min_*, max_and target_ popularities. These relinked tracks are accurate replacements for unplayable tracks with the expected popularity scores. Original, non-relinked tracks are available via the linked_from attribute of the relinked track response.

Functions

asTrackAttribute
Link copied to clipboard
common
fun <V : Number> asTrackAttribute(value: V): TrackAttribute<Int>
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

attribute
Link copied to clipboard
common
val attribute: String
The spotify id for the track attribute.
integerOnly
Link copied to clipboard
common
val integerOnly: Boolean
Whether this attribute can only take integers.
max
Link copied to clipboard
common
val max: Int?
The maximum value allowed for this attribute.
min
Link copied to clipboard
common
val min: Int?
The minimum value allowed for this attribute.
typeClass
Link copied to clipboard
common
val typeClass: KClass<Int>
The type, a subclass of Number, one of Float or Int that corresponds to this attribute.

Sources

common source
Link copied to clipboard