ARTDeviceDetails

Objective-C

@interface ARTDeviceDetails : NSObject

Swift

class ARTDeviceDetails : NSObject

Contains the properties of a device registered for push notifications.

  • id

    A unique ID generated by the device.

    Declaration

    Objective-C

    @property (nonatomic) ARTDeviceId *_Nonnull id;

    Swift

    var id: String { get set }
  • The client ID the device is connected to Ably with.

    Declaration

    Objective-C

    @property (nonatomic, nullable) NSString *clientId;

    Swift

    var clientId: String? { get set }
  • The ARTDevicePlatform associated with the device. Describes the platform the device uses, such as android or ios.

    Declaration

    Objective-C

    @property (nonatomic) NSString *_Nonnull platform;

    Swift

    var platform: String { get set }
  • The ARTDeviceFormFactor object associated with the device. Describes the type of the device, such as phone or tablet.

    Declaration

    Objective-C

    @property (nonatomic) NSString *_Nonnull formFactor;

    Swift

    var formFactor: String { get set }
  • A JSON object of key-value pairs that contains metadata for the device.

    Declaration

    Objective-C

    @property (nonatomic) NSDictionary<NSString *, NSString *> *_Nonnull metadata;

    Swift

    var metadata: [String : String] { get set }
  • The ARTDevicePushDetails object associated with the device. Describes the details of the push registration of the device.

    Declaration

    Objective-C

    @property (nonatomic) ARTDevicePushDetails *_Nonnull push;

    Swift

    var push: ARTDevicePushDetails { get set }