ARTDeviceDetails
Objective-C
@interface ARTDeviceDetails : NSObject
Swift
class ARTDeviceDetails : NSObject, @unchecked Sendable
Contains the properties of a device registered for push notifications.
-
A unique ID generated by the device.
Declaration
Objective-C
@property (nonatomic, readonly) ARTDeviceId *_Nonnull id;Swift
var id: String { get } -
The client ID the device is connected to Ably with.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *clientId;Swift
var clientId: String? { get } -
The
ARTDevicePlatformassociated with the device. Describes the platform the device uses, such asandroidorios.Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull platform;Swift
var platform: String { get } -
The
ARTDeviceFormFactorobject associated with the device. Describes the type of the device, such asphoneortablet.Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull formFactor;Swift
var formFactor: String { get } -
A JSON object of key-value pairs that contains metadata for the device.
Declaration
Objective-C
@property (nonatomic, readonly) NSDictionary<NSString *, NSString *> *_Nonnull metadata;Swift
var metadata: [String : String] { get } -
The
ARTDevicePushDetailsobject associated with the device. Describes the details of the push registration of the device.Declaration
Objective-C
@property (nonatomic, readonly) ARTDevicePushDetails *_Nonnull push;Swift
var push: ARTDevicePushDetails { get }