NIMStatusBarNotificationConfig class Null safety

SDK提供状态栏提醒的配置

Annotations

Constructors

NIMStatusBarNotificationConfig({bool ring = true, String? notificationSound, bool vibrate = true, int? ledARGB, int? ledOnMs, int? ledOffMs, bool hideContent = false, bool downTimeToggle = false, String? downTimeBegin, String? downTimeEnd, bool downTimeEnableNotification = true, String? notificationEntranceClassName, bool titleOnlyShowAppName = false, NIMNotificationFoldStyle notificationFoldStyle = NIMNotificationFoldStyle.all, int? notificationColor, bool showBadge = true, String? customTitleWhenTeamNameEmpty, NIMNotificationExtraType notificationExtraType = NIMNotificationExtraType.message})
NIMStatusBarNotificationConfig.fromMap(Map<String, dynamic> map)
factory

Properties

customTitleWhenTeamNameEmpty String?
如果群名称为null 或者空串,则使用customTitleWhenTeamNameEmpty 作为通知栏title
final
downTimeBegin String?
免打扰的开始时间, 格式为HH:mm(24小时制)。
final
downTimeEnableNotification bool
免打扰期间,是否显示通知,默认为显示
final
downTimeEnd String?
免打扰的结束时间, 格式为HH:mm(24小时制)。
如果结束时间小于开始时间,免打扰时间为开始时间-24:00-结束时间。
final
downTimeToggle bool
免打扰设置开关。默认为关闭。
final
hashCode int
The hash code for this object.
read-only, inherited
hideContent bool
不显示消息详情开关, 同时也不再显示消息发送者昵称
默认为false
final
ledARGB int?
呼吸灯的颜色 建议尽量使用绿色、蓝色、红色等基本颜色,不要去用混合色。
final
ledOffMs int?
呼吸灯熄灭时的持续时间(毫秒)
final
ledOnMs int?
呼吸灯亮时的持续时间(毫秒)
final
notificationColor int?
消息通知栏颜色,将应用到 NotificationCompat.Builder 的 setColor 方法 对Android 5.0 以后机型会影响到smallIcon
final
notificationEntranceClassName String?
通知栏提醒的响应intent的activity类型。
可以为null。如果未提供,将使用包的launcher的入口intent的activity。
final
notificationExtraType NIMNotificationExtraType
点击通知栏传递的extra类型
@JsonKey(defaultValue: NIMNotificationExtraType.message), final
notificationFoldStyle NIMNotificationFoldStyle
消息通知栏的折叠类型,不配置时,以notificationFolded的值为准, 如果为null,表示默认所有折叠
@JsonKey(defaultValue: NIMNotificationFoldStyle.all), final
notificationSound String?
响铃提醒的声音资源,如果不提供,使用系统默认提示音。
final
ring bool
状态栏提醒的小图标的资源名称。
如果不提供,使用app的icon
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
showBadge bool
是否APP图标显示未读数(红点) 仅针对Android 8.0+有效
final
titleOnlyShowAppName bool
通知栏提醒的标题是否只显示应用名。默认是 false,当有一个会话发来消息时,显示会话名;当有多个会话发来时,显示应用名。 修改为true,那么无论一个还是多个会话发来消息,标题均显示应用名。 应用名称请在AndroidManifest的application节点下设置android:label。
final
vibrate bool
是否需要振动提醒。
默认为true
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited