LocalNotificationManager.h 896 B

123456789101112131415161718192021222324252627
  1. //
  2. // LocalNotificationManager.h
  3. // YYXC
  4. //
  5. // Created by 张嵘 on 2020/11/25.
  6. // Copyright © 2020 JCZ. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
  10. #import <UserNotifications/UserNotifications.h>
  11. #endif
  12. NS_ASSUME_NONNULL_BEGIN
  13. #define RQ_LocalNoti_Manager [LocalNotificationManager shareManager]
  14. @interface LocalNotificationManager : NSObject
  15. + (instancetype)shareManager;
  16. /** 添加本地推送通知*/
  17. - (void)addLocalNotificationWithTitle:(NSString *)title subTitle:(NSString *)subTitle body:(NSString *)body timeInterval:(long)timeInterval identifier:(NSString *)identifier userInfo:(NSDictionary *)userInfo repeats:(int)repeats;
  18. /** 移除某一个指定的通知*/
  19. - (void)removeNotificationWithIdentifierID:(NSString *)noticeId;
  20. /** 移除所有通知*/
  21. - (void)removeAllNotification;
  22. @end
  23. NS_ASSUME_NONNULL_END