public class MessageNotificationManager
extends java.lang.Object
| 构造器和说明 |
|---|
MessageNotificationManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearNotificationQuietHours() |
static MessageNotificationManager |
getInstance() |
int |
getNotificationQuietHoursSpanTime() |
java.lang.String |
getNotificationQuietHoursStartTime() |
boolean |
isInQuietTime() |
void |
notifyIfNeed(android.content.Context context,
Message message,
int left)
是否设置了消息免打扰,新消息提醒是否关闭?
|
void |
setNotificationQuietHours(java.lang.String startTime,
int spanTime) |
public java.lang.String getNotificationQuietHoursStartTime()
public int getNotificationQuietHoursSpanTime()
public static MessageNotificationManager getInstance()
public void setNotificationQuietHours(java.lang.String startTime,
int spanTime)
public void clearNotificationQuietHours()
public void notifyIfNeed(android.content.Context context,
Message message,
int left)
context - 上下文message - 要通知的消息left - 剩余的消息public boolean isInQuietTime()