Skip to content

Commit

Permalink
Fixed nullability type specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
maratal committed Aug 26, 2021
1 parent b89ad95 commit e3e07c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/ARTPush.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
@class ARTDeviceDetails;
@class ARTDeviceIdentityTokenDetails;

NS_ASSUME_NONNULL_BEGIN

#pragma mark ARTPushRegisterer interface

#if TARGET_OS_IOS
Expand Down Expand Up @@ -42,13 +44,13 @@
Optional method.
If you want to activate devices from your server, then you should implement this method (including the `ablyPushCustomDeregister:deviceId:callback` method) where the network request completion should call the callback argument to continue with the registration process.
*/
- (void)ablyPushCustomRegister:(nullable ARTErrorInfo *)error deviceDetails:(nonnull ARTDeviceDetails *)deviceDetails callback:(void (^ _Nonnull)(ARTDeviceIdentityTokenDetails * _Nullable, ARTErrorInfo * _Nullable))callback;
- (void)ablyPushCustomRegister:(ARTErrorInfo * _Nullable)error deviceDetails:(ARTDeviceDetails *)deviceDetails callback:(void (^)(ARTDeviceIdentityTokenDetails * _Nullable, ARTErrorInfo * _Nullable))callback;

/**
Optional method.
If you want to deactivate devices from your server, then you should implement this method (including the `ablyPushCustomRegister:deviceDetails:callback` method) where the network request completion should call the callback argument to continue with the registration process.
*/
- (void)ablyPushCustomDeregister:(nullable ARTErrorInfo *)error deviceId:(nonnull ARTDeviceId *)deviceId callback:(ARTCallback)callback;
- (void)ablyPushCustomDeregister:(ARTErrorInfo * _Nullable)error deviceId:(ARTDeviceId *)deviceId callback:(ARTCallback)callback;

@end

Expand All @@ -57,8 +59,6 @@

#pragma mark ARTPush type

NS_ASSUME_NONNULL_BEGIN

@protocol ARTPushProtocol

- (instancetype)init NS_UNAVAILABLE;
Expand Down

0 comments on commit e3e07c4

Please sign in to comment.