RCTMIPushModule.h 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // RCTMIPushModule.h
  3. // RCTMIPushModule
  4. //
  5. // Created by zhangzy on 2016/10/24.
  6. // Copyright © 2016年 zzy. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. #import <UserNotifications/UserNotifications.h>
  11. #import <React/RCTEventEmitter.h>
  12. #import "MiPushSDK.h"
  13. #import <RNCPushNotificationIOS.h>
  14. @interface RCTMIPushModule : RCTEventEmitter <RCTBridgeModule, MiPushSDKDelegate>
  15. + (void)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
  16. + (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings;
  17. + (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
  18. + (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)notification;
  19. + (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification;
  20. + (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler;
  21. + (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)())completionHandler;
  22. @end