NIMCustomSystemNotification Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | NIMSystemNotification.h |
notificationId
Notification ID
@property (nonatomic, assign, readonly) int64_t notificationIdDiscussion
Notification ID
Only received custom system notifications have notification IDs
Declared In
NIMSystemNotification.h
timestamp
Timestamp
@property (nonatomic, assign, readonly) NSTimeInterval timestampDiscussion
Timestamp
Declared In
NIMSystemNotification.h
sender
Sender ID
@property (nullable, nonatomic, copy, readonly) NSString *senderDiscussion
Sender ID
Declared In
NIMSystemNotification.h
receiver
Recipient ID
@property (nullable, nonatomic, copy, readonly) NSString *receiverDiscussion
Recipient ID
Declared In
NIMSystemNotification.h
receiverType
Recipient types
@property (nonatomic, assign, readonly) NIMSessionType receiverTypeDiscussion
Recipient types
Declared In
NIMSystemNotification.h
content
Message body in pass-through mode
@property (nullable, nonatomic, copy, readonly) NSString *contentDiscussion
Message body in pass-through mode
Declared In
NIMSystemNotification.h
sendToOnlineUsersOnly
Specify whether to deliver messages only to online users
@property (nonatomic, assign) BOOL sendToOnlineUsersOnlyDiscussion
Specify whether to deliver messages only to online users
The default value is YES. If this value is set to NO, the recipient will receive the notification the next time the user logs in
Declared In
NIMSystemNotification.h
apnsContent
APNs push notification content that can contain up to 500 characters
@property (nullable, nonatomic, copy) NSString *apnsContentDiscussion
APNs push notification content that can contain up to 500 characters
The default value is nil, users can specify the content of the current notification.
Declared In
NIMSystemNotification.h
apnsPayload
APNS payload of a push notification
@property (nullable, nonatomic, copy) NSDictionary *apnsPayloadDiscussion
APNS payload of a push notification
The field can contain a custom notification as payload. For more information about supported types, see @discussion the official Apple documentation on APNs. The can support a maximum of 2000 characters.
Declared In
NIMSystemNotification.h
setting
Custom settings of system notifications
@property (nullable, nonatomic, strong) NIMCustomSystemNotificationSetting *settingDiscussion
Custom settings of system notifications
The field can be specified for settings, such as count as unread, and multi-device sync
Declared In
NIMSystemNotification.h
antiSpamOption
Anti-spam option
@property (nullable, nonatomic, strong) NIMAntiSpamOption *antiSpamOptionDiscussion
Anti-spam option
Declared In
NIMSystemNotification.h
env
The environment variable used to point to different types of configurations for state sync and third-party callbacks.
@property (nullable, nonatomic, copy) NSString *envDiscussion
The environment variable used to point to different types of configurations for state sync and third-party callbacks.
Declared In
NIMSystemNotification.h
– initWithContent:
Initialization method of custom system notifications
- (instancetype)initWithContent:(NSString *)contentParameters
content |
custom content of a system notification |
|---|
Return Value
custom system notifications instance
Discussion
Initialization method of custom system notifications
Declared In
NIMSystemNotification.h