User
public protocol User
A type representing a Spotify user.
The User
protocol serves as the base protocol to which all Spotify user types conform. Its requirements include all the publicly available properties of a user. See the Spotify Web API Object Model for more details.
-
The name displayed on the user’s profile.
nil
if not available.Declaration
Swift
var displayName: String? { get }
-
Known external URLs for this user. See
external URL object
for more details.Declaration
Swift
var externalURLs: [String : URL] { get }
-
Information about the followers of this user.
Note
Users that are part of a Playlist or Playlist Track instance don’t return this property.Declaration
Swift
var followers: SKFollowers? { get }
-
The Spotify ID for the user.
Declaration
Swift
var id: String { get }
-
The user’s profile image. If the user does not have a profile image set, this property will contain an empty array.
Note
Users that are part of a Playlist instance don’t return this property.Declaration
Swift
var images: [SKImage]? { get }
-
The Spotify URI for this user.
Declaration
Swift
var uri: String { get }
-
A link to the Web API endpoint for this user.
Declaration
Swift
var url: URL { get }