NIMSDK-AOS  9.16.0
StatusBarNotificationConfig.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk;
2 
3 import android.app.Activity;
4 import android.Manifest;
6 
7 import java.io.Serializable;
8 
12 public class StatusBarNotificationConfig implements Serializable {
13 
19 
24  public boolean ring = true;
25 
29  public String notificationSound;
30 
35  public boolean vibrate = true;
36 
42  public int ledARGB = -1;
43 
49  public int ledOnMs = -1;
50 
56  public int ledOffMs = -1;
57 
62  public boolean hideContent = false;
63 
64 
68  public boolean downTimeToggle = false;
69 
70 
74  public String downTimeBegin;
75 
76 
81  public String downTimeEnd;
82 
86  public boolean downTimeEnableNotification = true;
87 
88 
93  public Class<? extends Activity> notificationEntrance;
94 
100  public boolean titleOnlyShowAppName = false;
101 
107  @Deprecated
108  public boolean notificationFolded = true;
109 
114 
119  public int notificationColor;
120 
125  public boolean showBadge = true;
126 
131 
136 
146 }
boolean downTimeToggle
免打扰设置开关。默认为关闭。
String customTitleWhenTeamNameEmpty
如果群名称为null 或者空串,则使用customTitleWhenTeamNameEmpty 作为通知栏title
StatusBarNotificationFilter notificationFilter
弹StatusBarNotification之前,SDK通过改接口询问App,根据App返回结果决定是否弹出通知 为空等同于返回DEFA...
boolean hideContent
不显示消息详情开关, 同时也不再显示消息发送者昵称 默认为false
ALL
折叠所有通知栏消息为一条通知
int notificationColor
消息通知栏颜色,将应用到 NotificationCompat.Builder 的 setColor 方法 对Android 5.0 以后机型会影响到sm...
int ledARGB
呼吸灯的颜色 The color of the led.
int ledOnMs
呼吸灯亮时的持续时间(毫秒) The number of milliseconds for the LED to be on while it&#39;s flashing...
boolean ring
是否需要响铃提醒。 默认为true
NotificationExtraTypeEnum notificationExtraType
点击通知栏传递的extra类型
boolean vibrate
是否需要振动提醒。 默认为true
boolean downTimeEnableNotification
免打扰期间,是否显示通知,默认为显示
Class<? extends Activity > notificationEntrance
通知栏提醒的响应intent的activity类型。 可以为null。如果未提供,将使用包的launcher的入口intent的activ...
NotificationFoldStyle notificationFoldStyle
消息通知栏的折叠类型,不配置时,以notificationFolded的值为准, 如果为null,表示默认所有折叠 ...
boolean titleOnlyShowAppName
通知栏提醒的标题是否只显示应用名。默认是 false,当有一个会话发来消息时,显示会话名;当有多个会话发来...
String downTimeBegin
免打扰的开始时间, 格式为HH:mm(24小时制)。
int notificationSmallIconId
状态栏提醒的小图标的资源ID。 如果不提供,使用app的icon
String notificationSound
响铃提醒的声音资源,如果不提供,使用系统默认提示音。
String downTimeEnd
免打扰的结束时间, 格式为HH:mm(24小时制)。 如果结束时间小于开始时间,免打扰时间为开始时间-24:00-结束...
boolean showBadge
是否APP图标显示未读数(红点) 仅针对Android 8.0+有效
int ledOffMs
呼吸灯熄灭时的持续时间(毫秒) The number of milliseconds for the LED to be off while it&#39;s flashing...
NimPermissionRequester postNotificationsRequester
Android13 弹出通知之前,SDK通过改接口向App请求权限Manifest.permission#POST_NOTIFICATIONS,根据权限赋...