java.lang.Object | |
↳ | com.tencent.map.navi.data.ForegroundOptions |
前台通知的属性配置类。
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ForegroundOptions() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getContentText()
获取通知的内容。
| ||||||||||
String |
getContentTitle()
获取通知的标题。
| ||||||||||
int |
getLargeIcon()
获取通知的 largeIcon ResID。
| ||||||||||
int |
getSmallIcon()
获取通知的 smallIcon ResID。
| ||||||||||
long |
getWhen()
获取通知 time。
| ||||||||||
ForegroundOptions |
setContentText(String contentText)
配置通知的内容。
| ||||||||||
ForegroundOptions |
setContentTitle(String contentTitle)
配置通知的标题。
| ||||||||||
ForegroundOptions |
setLargeIcon(int largeIcon)
配置通知的 largeIcon ResID。
| ||||||||||
ForegroundOptions |
setSmallIcon(int smallIcon)
配置通知 smallIcon ResID。
| ||||||||||
ForegroundOptions |
setWhen(long when)
配置通知 time。
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
获取通知的内容。
获取通知的标题。
获取通知的 largeIcon ResID。
获取通知的 smallIcon ResID。
获取通知 time。
配置通知的内容。
contentText | 默认:"" |
---|
配置通知的标题。
contentTitle | 默认:location |
---|
配置通知的 largeIcon ResID。
largeIcon | 默认不使用 |
---|
配置通知 smallIcon ResID。
smallIcon | 默认:R.mipmap.default_notification_icon |
---|