123456789101112131415161718192021222324252627 |
- //
- // LocalNotificationManager.h
- // YYXC
- //
- // Created by 张嵘 on 2020/11/25.
- // Copyright © 2020 JCZ. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
- #import <UserNotifications/UserNotifications.h>
- #endif
- NS_ASSUME_NONNULL_BEGIN
- #define RQ_LocalNoti_Manager [LocalNotificationManager shareManager]
- @interface LocalNotificationManager : NSObject
- + (instancetype)shareManager;
- /** 添加本地推送通知*/
- - (void)addLocalNotificationWithTitle:(NSString *)title subTitle:(NSString *)subTitle body:(NSString *)body timeInterval:(long)timeInterval identifier:(NSString *)identifier userInfo:(NSDictionary *)userInfo repeats:(int)repeats;
- /** 移除某一个指定的通知*/
- - (void)removeNotificationWithIdentifierID:(NSString *)noticeId;
- /** 移除所有通知*/
- - (void)removeAllNotification;
- @end
- NS_ASSUME_NONNULL_END
|