NIMSDK-AOS  9.16.0
NotificationFoldStyle.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk;
2 
3 public enum NotificationFoldStyle {
7  ALL(0, "all"),
8 
12  EXPAND(1, "expand"),
13 
17  CONTACT(2, "contact");
18 
19  private int value;
20  private String msg;
21 
22  NotificationFoldStyle(int value, String msg) {
23  this.value = value;
24  this.msg = msg;
25  }
26 
27  public int getValue() {
28  return value;
29  }
30 
31  public String getMsg() {
32  return msg;
33  }
34 
35  public static NotificationFoldStyle value(int value) {
36  for (NotificationFoldStyle v : NotificationFoldStyle.values()) {
37  if (v.value == value) {
38  return v;
39  }
40  }
41  return ALL;
42  }
43 
44 
45 }
CONTACT
将同一个会话下的消息折叠为一条通知,不同会话之间不折叠
ALL
折叠所有通知栏消息为一条通知
static NotificationFoldStyle value(int value)