SKYRegisterDeviceOperation

@interface SKYRegisterDeviceOperation : SKYOperation

Undocumented

  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDeviceToken:(NSData *_Nullable)deviceToken;

    Swift

    init(deviceToken: Data?)
  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDeviceToken:(NSData *_Nullable)deviceToken
                                          topic:(NSString *_Nullable)topic;

    Swift

    init(deviceToken: Data?, topic: String?)
  • Returns an instance of operation that registers a device without supplying a device token.

    You can use this method when a device token is not available because the user did not grant the permission for remote notification. Notification will arrive through the pubsub mechanism instead of remote notification.

    Declaration

    Objective-C

    + (nonnull instancetype)operation;
  • Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)operationWithDeviceToken:(NSData *_Nullable)deviceToken;
  • Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)operationWithDeviceToken:(NSData *_Nullable)deviceToken
                                               topic:(NSString *_Nullable)topic;
  • Undocumented

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSData *_Nullable deviceToken;

    Swift

    var deviceToken: Data? { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nullable topic;

    Swift

    var topic: String? { get }
  • Undocumented

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) NSString *_Nullable deviceID;

    Swift

    var deviceID: String? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) void (^_Nullable)
        (NSString *_Nullable, NSError *_Nullable) registerCompletionBlock;

    Swift

    var registerCompletionBlock: ((String?, Error?) -> Void)? { get set }