NIMSDK-iOS
载入中...
搜索中...
未找到
NIMPushNotificationSetting.h
浏览该文件的文档.
1//
2// NIMPushNotificationSetting.h
3// NIMLib
4//
5// Created by Netease.
6// Copyright (c) 2015 Netease. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10
11NS_ASSUME_NONNULL_BEGIN
12
13/**
14 * 推送消息显示类型
15 */
16typedef NS_ENUM(NSInteger, NIMPushNotificationDisplayType){
17 /**
18 * 显示详情
19 */
21 /**
22 * 不显示详情
23 */
25};
26
27/**
28 * 推送消息等级配置类型
29 * @discussion 低等级消息:普通消息等(没有具体目标、没有@意愿)。中等级消息:@所有人等(没有具体目标、有@意愿)。高等级消息: @某些人等(有具体目标、有@意愿)
30 */
31typedef NS_ENUM(NSInteger, NIMPushNotificationProfile){
32 /**
33 * 未指定
34 */
36
37 /**
38 * 全部消息都收
39 */
41
42 /**
43 * 只收高、中等级消息
44 */
46
47 /**
48 * 只收高等级消息
49 */
51
52 /**
53 * 全部消息都不收
54 */
56
57 /**
58 * 使用平台默认配置
59 */
61};
62
63/**
64 * 消息推送免打扰参数设置
65 */
66@interface NIMPushNotificationSetting : NSObject<NSCopying>
67/**
68 * 推送消息显示类型
69 */
70@property (nonatomic,assign) NIMPushNotificationDisplayType type;
71
72/**
73 * 推送消息是否开启免打扰 YES表示开启免打扰
74 */
75@property (nonatomic,assign) BOOL noDisturbing;
76
77/**
78 * 免打扰开始时间:小时
79 */
80@property (nonatomic,assign) NSUInteger noDisturbingStartH;
81
82/**
83 * 免打扰开始时间:分
84 */
85@property (nonatomic,assign) NSUInteger noDisturbingStartM;
86
87/**
88 * 免打扰结束时间:小时
89 */
90@property (nonatomic,assign) NSUInteger noDisturbingEndH;
91
92/**
93 * 免打扰结束时间:分
94 */
95@property (nonatomic,assign) NSUInteger noDisturbingEndM;
96
97/**
98 * 推送消息等级配置(当前仅在圈组中设置有效)
99 */
100@property (nonatomic,assign) NIMPushNotificationProfile profile;
101
102@end
103
104
105/**
106 * 自定义消息多端推送策略配置项
107 */
109
110/**
111 * 桌面端在线时是否需要发送推送给手机端
112 * @discussion 默认为 YES,即需要推送,桌面端包括 PC,web , macOS 等...
113 */
114@property (nonatomic,assign) BOOL shouldPushNotificationWhenPCOnline;
115
116@end
117
118
119NS_ASSUME_NONNULL_END
NIMPushNotificationProfile
Definition: NIMPushNotificationSetting.h:31
@ NIMPushNotificationProfileOnlyHighAndMediumLevel
Definition: NIMPushNotificationSetting.h:45
@ NIMPushNotificationProfileOnlyHighLevel
Definition: NIMPushNotificationSetting.h:50
@ NIMPushNotificationProfileDisableAll
Definition: NIMPushNotificationSetting.h:55
@ NIMPushNotificationProfilePlatformDefault
Definition: NIMPushNotificationSetting.h:60
@ NIMPushNotificationProfileEnableAll
Definition: NIMPushNotificationSetting.h:40
@ NIMPushNotificationProfileNotSet
Definition: NIMPushNotificationSetting.h:35
NIMPushNotificationDisplayType
Definition: NIMPushNotificationSetting.h:16
@ NIMPushNotificationDisplayTypeDetail
Definition: NIMPushNotificationSetting.h:20
@ NIMPushNotificationDisplayTypeNoDetail
Definition: NIMPushNotificationSetting.h:24
Definition: NIMPushNotificationSetting.h:109
Definition: NIMPushNotificationSetting.h:66
NSUInteger noDisturbingStartH
Definition: NIMPushNotificationSetting.h:80
NSUInteger noDisturbingEndH
Definition: NIMPushNotificationSetting.h:90
NSUInteger noDisturbingStartM
Definition: NIMPushNotificationSetting.h:85
NIMPushNotificationProfile profile
Definition: NIMPushNotificationSetting.h:100
NIMPushNotificationDisplayType type
Definition: NIMPushNotificationSetting.h:70
NSUInteger noDisturbingEndM
Definition: NIMPushNotificationSetting.h:95
BOOL noDisturbing
Definition: NIMPushNotificationSetting.h:75