CorePushNotificationHistoryManager
@interface CorePushNotificationHistoryManager : NSObject
通知履歴のマネージャークラス
-
通知履歴を格納した CorePushNotificationHistoryModelオブジェクトの配列
Declaration
Objective-C
@property (readwrite, strong, nonatomic, nonnull) NSArray<CorePushNotificationHistoryModel *> *notificationHistoryModelArray;Swift
var notificationHistoryModelArray: [CorePushNotificationHistoryModel] { get set } -
CorePushNotificationHistoryManagerのシングルトンオブジェクト
Declaration
Objective-C
@property (readonly, nonatomic, nonnull, class) CorePushNotificationHistoryManager *shared;Swift
class var shared: CorePushNotificationHistoryManager { get } -
CorePushNotificationHistoryManagerDelegateプロトコルを実装したクラス
Declaration
Objective-C
@property (assign, readwrite, nonatomic, nullable) id<CorePushNotificationHistoryManagerDelegate> delegate;Swift
unowned(unsafe) var delegate: CorePushNotificationHistoryManagerDelegate? { get set } -
通知履歴を取得します。日付の新しい順に最大100件取得されます。
取得に成功した場合は CorePushNotificationHistoryManagerDelegate#notificationHistoryManagerSuccess が呼ばれます。
取得に失敗した場合は CorePushNotificationHistoryManagerDelegate#notificationHistoryManagerFail が呼ばれます。Declaration
Objective-C
- (void)requestNotificationHistory;Swift
func requestNotificationHistory() -
指定の履歴IDのメッセージを既読に設定します。
Declaration
Objective-C
- (void)setRead:(nonnull NSString *)historyId;Swift
func setRead(_ historyId: String)Parameters
historyId履歴ID
-
指定の履歴IDのメッセージが未読であるかを判定します。
Declaration
Objective-C
- (BOOL)isUnread:(nonnull NSString *)historyId;Swift
func isUnread(_ historyId: String) -> BoolParameters
historyId履歴ID
-
通知履歴の未読数を返します。
Declaration
Objective-C
- (int)getUnreadNumber;Swift
func getUnreadNumber() -> Int32
View on GitHub
CorePushNotificationHistoryManager Class Reference