AppDelegate+XYPush.h 784 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // AppDelegate+XYPush.h
  3. // Starbuds
  4. //
  5. // Created by 翟玉磊 on 2020/6/16.
  6. // Copyright © 2020 翟玉磊. All rights reserved.
  7. //
  8. #import "AppDelegate.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface AppDelegate (XYPush)
  11. - (void)push_application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
  12. - (void)push_application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
  13. /// 注册推送
  14. - (void)registerAPNS:(UIApplication *)application;
  15. /// 推送绑定账号
  16. /// @param callback 回调
  17. - (void)push_bindingAccount:(void(^)(BOOL succes))callback;
  18. /// 推送解绑账号
  19. /// @param callback 回调
  20. - (void)push_unbindAccount:(void(^)(BOOL succes))callback;
  21. @end
  22. NS_ASSUME_NONNULL_END