AgoraChatSDK 1.2.0
Instance Methods | Class Methods | List of all members
AgoraChatLocalNotificationManager Class Reference

#import <AgoraChatLocalNotificationManager.h>

Inheritance diagram for AgoraChatLocalNotificationManager:

Instance Methods

((unavailable("call sharedManager instead") - __attribute__
 
((unavailable("call sharedManager instead") - __attribute__
 
(void) - launchWithDelegate:
 
(void) - userNotificationCenter:willPresentNotification:withCompletionHandler:
 
(void) - userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:
 

Class Methods

((unavailable("call sharedManager instead") + __attribute__
 
((unavailable("call sharedManager instead") + __attribute__
 
(instancetype _Nonnull) + sharedManager
 

Detailed Description

A class that manages the chat message notification.

Method Documentation

◆ __attribute__ [1/4]

+ ((unavailable("call sharedManager instead") __attribute__

Allocs.

◆ __attribute__ [2/4]

+ ((unavailable("call sharedManager instead") __attribute__

Create an instance.

◆ __attribute__ [3/4]

- ((unavailable("call sharedManager instead") __attribute__

Copy an instance.

◆ __attribute__ [4/4]

- ((unavailable("call sharedManager instead") __attribute__

Copy and generate a new instance.

◆ launchWithDelegate:

- (void) launchWithDelegate: (id< AgoraChatLocalNotificationDelegate >)  aDelegate

Enables the chat message notification service.

Once you enable this service, the new message is reported in the notification bar so that users can read them in time.

◆ sharedManager

+ (instancetype _Nonnull) sharedManager

Create an instance.

◆ userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:

- (void) userNotificationCenter: (UNUserNotificationCenter *)  center
didReceiveNotificationResponse: (UNNotificationResponse *)  response
withCompletionHandler: (void(^)(void))  completionHandler 

When the system receives a push notification, the callback method is triggered when the notification bar is clicked. User should call this method in the implementation of UNUserNotificationCenterDelegate if they have override UNUserNotificationCenterDelegate in-app.

◆ userNotificationCenter:willPresentNotification:withCompletionHandler:

- (void) userNotificationCenter: (UNUserNotificationCenter *)  center
willPresentNotification: (UNNotification *)  notification
withCompletionHandler: (void(^)(UNNotificationPresentationOptions options))  completionHandler 

User should call this method in the implementation of UNUserNotificationCenterDelegate if they have override UNUserNotificationCenterDelegate in-app. If you don't want the SDK to execute the callback, don't pass the completionHandler


The documentation for this class was generated from the following file: