ARTPushInternal
Objective-C
@interface ARTPushInternal : NSObject
@property (nonatomic, readonly) ARTPushAdminInternal *admin;
- (instancetype)initWithRest:(ARTRestInternal *)rest logger:(ARTInternalLog *)logger;
#if TARGET_OS_IOS
/// Note that in certain edge cases (if the related ARTRestInternal instance is being deallocated and the UIApplication delegate is being used as the push registerer delegate) this callback may be called with nil.
- (void)getActivationMachine:(void (^)(ARTPushActivationStateMachine * _Nullable))block;
/// Direct access to _activationMachine var for internal testing.
/// Throws an exception if there is no activation machine or it could not be locked immediately.
@property (readonly) ARTPushActivationStateMachine *activationMachine;
/// Create the _activationMachine manually with a custom delegate for internal testing.
- (ARTPushActivationStateMachine *)createActivationStateMachineWithDelegate:(id<ARTPushRegistererDelegate, NSObject>)delegate;
#endif
#if TARGET_OS_IOS
+ (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken rest:(ARTRest *)rest;
+ (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken realtime:(ARTRealtime *)realtime;
+ (void)didFailToRegisterForRemoteNotificationsWithError:(NSError *)error rest:(ARTRest *)rest;
+ (void)didFailToRegisterForRemoteNotificationsWithError:(NSError *)error realtime:(ARTRealtime *)realtime;
+ (void)didRegisterForLocationNotificationsWithDeviceToken:(NSData *)deviceToken rest:(ARTRest *)rest;
+ (void)didRegisterForLocationNotificationsWithDeviceToken:(NSData *)deviceToken realtime:(ARTRealtime *)realtime;
+ (void)didFailToRegisterForLocationNotificationsWithError:(NSError *)error rest:(ARTRest *)rest;
+ (void)didFailToRegisterForLocationNotificationsWithError:(NSError *)error realtime:(ARTRealtime *)realtime;
- (void)activate;
- (void)deactivate;
#endif
@end
Swift
class ARTPushInternal : NSObject
Undocumented
-
Undocumented
Declaration
Objective-C
@property (nonatomic, readonly) ARTPushAdminInternal *adminSwift
var admin: ARTPushAdminInternal { get } -
Undocumented
Declaration
Objective-C
- (instancetype)initWithRest:(ARTRestInternal *)rest logger:(ARTInternalLog *)logger;Swift
init(rest: ARTRestInternal, logger: InternalLog) -
Note that in certain edge cases (if the related ARTRestInternal instance is being deallocated and the UIApplication delegate is being used as the push registerer delegate) this callback may be called with nil.
Declaration
Objective-C
- (void)getActivationMachine: (nonnull void (^)(ARTPushActivationStateMachine *_Nullable))block;Swift
func getActivationMachine(_ block: @escaping (ARTPushActivationStateMachine?) -> Void) -
Direct access to _activationMachine var for internal testing. Throws an exception if there is no activation machine or it could not be locked immediately.
Declaration
Objective-C
@property (readonly) ARTPushActivationStateMachine *_Nonnull activationMachine;Swift
var activationMachine: ARTPushActivationStateMachine { get } -
Create the _activationMachine manually with a custom delegate for internal testing.
Declaration
Objective-C
- (nonnull ARTPushActivationStateMachine *) createActivationStateMachineWithDelegate: (nonnull id<ARTPushRegistererDelegate, NSObject>)delegate;Swift
func createActivationStateMachine(withDelegate delegate: any ARTPushRegistererDelegate & NSObjectProtocol) -> ARTPushActivationStateMachine -
Undocumented
Declaration
Objective-C
+ (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken realtime:(ARTRealtime *)realtime;Swift
class func didRegisterForRemoteNotifications(withDeviceToken deviceToken: Data, realtime: ARTRealtime) -
Undocumented
Declaration
Objective-C
+ (void)didFailToRegisterForRemoteNotificationsWithError:(NSError *)error realtime:(ARTRealtime *)realtime;Swift
class func didFailToRegisterForRemoteNotificationsWithError(_ error: any Error, realtime: ARTRealtime) -
Undocumented
Declaration
Objective-C
+ (void)didRegisterForLocationNotificationsWithDeviceToken:(NSData *)deviceToken realtime:(ARTRealtime *)realtime;Swift
class func didRegisterForLocationNotifications(withDeviceToken deviceToken: Data, realtime: ARTRealtime) -
Undocumented
Declaration
Objective-C
+ (void)didFailToRegisterForLocationNotificationsWithError:(NSError *)error realtime:(ARTRealtime *)realtime;Swift
class func didFailToRegisterForLocationNotificationsWithError(_ error: any Error, realtime: ARTRealtime) -
Undocumented
Declaration
Objective-C
- (void)activate;Swift
func activate() -
Undocumented
Declaration
Objective-C
- (void)deactivate;Swift
func deactivate()