SpotifyApiSpotify LogoJS

Device player.d.ts#L38

An object containing the details of a device.

https://developer.spotify.com/documentation/web-api/reference/#object-deviceobject

Properties:

NameTypeDescription
id"null" | stringThe device ID.
is_activebooleanIf this device is the currently active device.
is_private_sessionbooleanIf this device is currently in a private session.
is_restrictedbooleanWhether controlling this device is restricted. At present if this is “true” then no Web API commands will be accepted by this device.
namestringThe name of the device.
type"computer" | "smartphone" | "speaker"The device type.
volume_percentnumberThe current volume in percent.
OPTIONAL