mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-23 05:13:04 +03:00
47 lines
1.0 KiB
Objective-C
47 lines
1.0 KiB
Objective-C
#import "MSServiceAbstract.h"
|
|
#import "MSPushDelegate.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/**
|
|
* App Center push service.
|
|
*/
|
|
@interface MSPush : MSServiceAbstract
|
|
|
|
/**
|
|
* Callback for successful registration with push token.
|
|
*
|
|
* @param deviceToken The device token for remote notifications.
|
|
*/
|
|
+ (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
|
|
|
|
/**
|
|
* Callback for unsuccessful registration with error.
|
|
*
|
|
* @param error Error of unsuccessful registration.
|
|
*/
|
|
+ (void)didFailToRegisterForRemoteNotificationsWithError:(NSError *)error;
|
|
|
|
/**
|
|
* Callback for notification with user info.
|
|
*
|
|
* @param userInfo The user info for the remote notification.
|
|
*
|
|
* @return YES if the notification was sent via App Center.
|
|
*/
|
|
+ (BOOL)didReceiveRemoteNotification:(NSDictionary *)userInfo;
|
|
|
|
/**
|
|
* Set the delegate.
|
|
* Defines the class that implements the optional protocol `MSPushDelegate`.
|
|
*
|
|
* @param delegate The delegate.
|
|
*
|
|
* @see MSPushDelegate
|
|
*/
|
|
+ (void)setDelegate:(nullable id<MSPushDelegate>)delegate;
|
|
|
|
NS_ASSUME_NONNULL_END
|
|
|
|
@end
|