Device
public struct Device
extension Device: Equatable, Hashable
A device connected to the user’s account.
This struct provides metadata about a device connected to the user’s account. This data would typically be used to display e.g. the list of candidate devices in a “send tab” menu.
-
Declaration
Swift
public var id: String
-
Declaration
Swift
public var displayName: String
-
Declaration
Swift
public var deviceType: DeviceType
-
Declaration
Swift
public var capabilities: [DeviceCapability]
-
Declaration
Swift
public var pushSubscription: DevicePushSubscription?
-
Declaration
Swift
public var pushEndpointExpired: Bool
-
Declaration
Swift
public var isCurrentDevice: Bool
-
Declaration
Swift
public var lastAccessTime: Int64?
-
init(id:
displayName: deviceType: capabilities: pushSubscription: pushEndpointExpired: isCurrentDevice: lastAccessTime: ) Declaration
Swift
public init(id: String, displayName: String, deviceType: DeviceType, capabilities: [DeviceCapability], pushSubscription: DevicePushSubscription?, pushEndpointExpired: Bool, isCurrentDevice: Bool, lastAccessTime: Int64?)
-
Declaration
Swift
public static func == (lhs: Device, rhs: Device) -> Bool
-
Declaration
Swift
public func hash(into hasher: inout Hasher)