HyphenateChatSDK 3.9.9.1
EMPushOptions.h
1
15#import <Foundation/Foundation.h>
16#import "EMCommonDefs.h"
17
18#define kPushNickname @"nickname"
19#define kPushDisplayStyle @"notification_display_style"
20#define kPushNoDisturbing @"notification_no_disturbing"
21#define kPushNoDisturbingStartH @"notification_no_disturbing_start"
22#define kPushNoDisturbingStartM @"notification_no_disturbing_startM"
23#define kPushNoDisturbingEndH @"notification_no_disturbing_end"
24#define kPushNoDisturbingEndM @"notification_no_disturbing_endM"
25
33typedef NS_ENUM(NSInteger, EMPushDisplayStyle) {
34 EMPushDisplayStyleSimpleBanner = 0,
41 EMPushDisplayStyleMessageSummary,
48};
49
57@interface EMPushOptions : NSObject
58
66@property (nonatomic, strong, readonly) NSString * _Nullable displayName;
67
75@property (nonatomic, readonly) EMPushDisplayStyle displayStyle;
76
77
87@property (nonatomic, readonly) NSInteger silentModeStart
88EM_DEPRECATED_IOS(3_8_8, 3_9_1, "Use EMSilentModeResult property silentModeStartTime instead");
89
99@property (nonatomic, readonly) NSInteger silentModeEnd
100EM_DEPRECATED_IOS(3_8_8, 3_9_1, "Use EMSilentModeResult property silentModeEndTime instead");
101
112@property (nonatomic, readonly) BOOL silentModeEnabled
113EM_DEPRECATED_IOS(3_8_8, 3_9_1, "Use EMSilentModeResult property expireTimestamp and silentModeTime determine whether to enable");
114
115
116#pragma mark - EM_DEPRECATED_IOS 3.8.8
124@property (nonatomic, readonly) NSInteger noDisturbingStartH
125__deprecated_msg("Use silentModeStart instead");
126
134@property (nonatomic, readonly) NSInteger noDisturbingEndH
135__deprecated_msg("Use silentModeEnd instead");
136
145@property (nonatomic, readonly) BOOL isNoDisturbEnable
146__deprecated_msg("Use silentModeEnabled instead");
147
148
149
150
151@end
Definition: EMPushOptions.h:58
NSInteger silentModeStart EM_DEPRECATED_IOS(3_8_8, 3_9_1, "Use EMSilentModeResult property silentModeStartTime instead")
BOOL silentModeEnabled EM_DEPRECATED_IOS(3_8_8, 3_9_1, "Use EMSilentModeResult property expireTimestamp and silentModeTime determine whether to enable")
BOOL isNoDisturbEnable __deprecated_msg("Use silentModeEnabled instead")
NSInteger silentModeEnd EM_DEPRECATED_IOS(3_8_8, 3_9_1, "Use EMSilentModeResult property silentModeEndTime instead")
NSInteger noDisturbingEndH __deprecated_msg("Use silentModeEnd instead")
NSInteger noDisturbingStartH __deprecated_msg("Use silentModeStart instead")
EMPushDisplayStyle displayStyle
Definition: EMPushOptions.h:75
NSString *_Nullable displayName
Definition: EMPushOptions.h:66