Use Tree Navigation
public static class

TNKLocationManager.ForegroundOptions

extends Object
java.lang.Object
   ↳ com.tencent.map.navi.tlocation.TNKLocationManager.ForegroundOptions

Class Overview

前台服务配置类

Summary

Public Constructors
ForegroundOptions()
Public Methods
String getContentText()
获取通知的内容
String getContentTitle()
获取通知的标题
Bitmap getLargeIcon()
获取通知的largeIcon
int getSmallIcon()
获取通知的smallIcon
long getWhen()
获取通知time
TNKLocationManager.ForegroundOptions setContentText(String contentText)
配置通知的内容
TNKLocationManager.ForegroundOptions setContentTitle(String contentTitle)
配置通知的标题
TNKLocationManager.ForegroundOptions setLargeIcon(Bitmap largeIcon)
配置通知的largeIcon
TNKLocationManager.ForegroundOptions setSmallIcon(int smallIcon)
配置通知smallIcon
TNKLocationManager.ForegroundOptions setWhen(long when)
配置通知time
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ForegroundOptions ()

Public Methods

public String getContentText ()

获取通知的内容

public String getContentTitle ()

获取通知的标题

public Bitmap getLargeIcon ()

获取通知的largeIcon

public int getSmallIcon ()

获取通知的smallIcon

public long getWhen ()

获取通知time

public TNKLocationManager.ForegroundOptions setContentText (String contentText)

配置通知的内容

Parameters
contentText 默认:导航sdk前台服务
Returns
  • 当前通知配置

public TNKLocationManager.ForegroundOptions setContentTitle (String contentTitle)

配置通知的标题

Parameters
contentTitle 默认:location
Returns
  • 当前通知配置

public TNKLocationManager.ForegroundOptions setLargeIcon (Bitmap largeIcon)

配置通知的largeIcon

Parameters
largeIcon 默认不使用
Returns
  • 当前通知配置

public TNKLocationManager.ForegroundOptions setSmallIcon (int smallIcon)

配置通知smallIcon

Parameters
smallIcon 默认:R.mipmap.default_notification_icon
Returns
  • 当前通知配置

public TNKLocationManager.ForegroundOptions setWhen (long when)

配置通知time

Parameters
when 默认:当前时间戳
Returns
  • 当前通知配置