AgoraChatSDK 1.2.0
AgoraChatPushOptions.h
1
9#import <Foundation/Foundation.h>
10#import "AgoraChatCommonDefs.h"
11
12#define kPushNickname @"nickname"
13#define kPushDisplayStyle @"notification_display_style"
14#define kPushNoDisturbing @"notification_no_disturbing"
15#define kPushNoDisturbingStartH @"notification_no_disturbing_start"
16#define kPushNoDisturbingStartM @"notification_no_disturbing_startM"
17#define kPushNoDisturbingEndH @"notification_no_disturbing_end"
18#define kPushNoDisturbingEndM @"notification_no_disturbing_endM"
19
24typedef NS_ENUM(NSInteger, AgoraChatPushDisplayStyle) {
25 AgoraChatPushDisplayStyleSimpleBanner = 0,
29 AgoraChatPushDisplayStyleMessageSummary,
33};
34
39@interface AgoraChatPushOptions : NSObject
40
45@property (nonatomic, strong, readonly) NSString * _Nullable displayName;
46
51@property (nonatomic, readonly) AgoraChatPushDisplayStyle displayStyle;
52
53
59@property (nonatomic, readonly) NSInteger silentModeStart
60EM_DEPRECATED_IOS(3_8_8, 3_9_1, "Use AgoraChatSilentModeResult property silentModeStartTime instead");
61
67@property (nonatomic, readonly) NSInteger silentModeEnd
68EM_DEPRECATED_IOS(3_8_8, 3_9_1, "Use AgoraChatSilentModeResult property silentModeEndTime instead");
69
76@property (nonatomic, readonly) BOOL silentModeEnabled
77EM_DEPRECATED_IOS(3_8_8, 3_9_1, "Use AgoraChatSilentModeResult property expireTimestamp and silentModeTime determine whether to enable");
78
79
80#pragma mark - EM_DEPRECATED_IOS 3.8.8
85@property (nonatomic, readonly) NSInteger noDisturbingStartH
86__deprecated_msg("Use silentModeStart instead");
87
92@property (nonatomic, readonly) NSInteger noDisturbingEndH
93__deprecated_msg("Use silentModeEnd instead");
94
100@property (nonatomic, readonly) BOOL isNoDisturbEnable
101__deprecated_msg("Use silentModeEnabled instead");
102
103
104
105
106@end
Definition: AgoraChatPushOptions.h:40
AgoraChatPushDisplayStyle displayStyle
Definition: AgoraChatPushOptions.h:51
NSString *_Nullable displayName
Definition: AgoraChatPushOptions.h:45
NSInteger noDisturbingStartH __deprecated_msg("Use silentModeStart instead")
BOOL isNoDisturbEnable __deprecated_msg("Use silentModeEnabled instead")
BOOL silentModeEnabled EM_DEPRECATED_IOS(3_8_8, 3_9_1, "Use AgoraChatSilentModeResult property expireTimestamp and silentModeTime determine whether to enable")
NSInteger silentModeEnd EM_DEPRECATED_IOS(3_8_8, 3_9_1, "Use AgoraChatSilentModeResult property silentModeEndTime instead")
NSInteger noDisturbingEndH __deprecated_msg("Use silentModeEnd instead")
NSInteger silentModeStart EM_DEPRECATED_IOS(3_8_8, 3_9_1, "Use AgoraChatSilentModeResult property silentModeStartTime instead")