ecency-mobile/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenterPush.framework/Headers/MSPush.h
2019-08-02 14:19:31 +03:00

50 lines
1.1 KiB
Objective-C

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#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