public class Trace
extends java.lang.Object
开启轨迹服务前(调用LBSTraceClient类中startTrace()方法),需先初始化该类。
| 构造器和说明 |
|---|
Trace()
轨迹服务
|
Trace(long serviceId,
java.lang.String entityName)
轨迹服务
|
Trace(long serviceId,
java.lang.String entityName,
boolean isNeedObjectStorage)
轨迹服务
|
Trace(long serviceId,
java.lang.String entityName,
boolean isNeedObjectStorage,
Notification notification) |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getEntityName()
获取entity标识
|
Notification |
getNotification() |
long |
getServiceId()
获取轨迹服务ID
|
boolean |
isNeedObjectStorage() |
void |
setEntityName(java.lang.String entityName)
设置entity标识
|
void |
setNeedObjectStorage(boolean isNeedObjectStorage)
是否需要对象存储服务
|
void |
setNotification(Notification notification)
设置前台服务通知消息
|
void |
setServiceId(long serviceId)
设置轨迹服务ID
|
public Trace()
public Trace(long serviceId,
java.lang.String entityName)
serviceId - 轨迹服务IDentityName - entity标识public Trace(long serviceId,
java.lang.String entityName,
boolean isNeedObjectStorage)
serviceId - 轨迹服务IDentityName - entity标识isNeedObjectStorage - 是否需要对象存储功能public Trace(long serviceId,
java.lang.String entityName,
boolean isNeedObjectStorage,
Notification notification)
serviceId - 轨迹服务IDentityName - entity标识isNeedObjectStorage - 是否需要对象存储功能notification - 前台服务通知消息public long getServiceId()
public void setServiceId(long serviceId)
serviceId - 开发者创建的服务IDpublic java.lang.String getEntityName()
public void setEntityName(java.lang.String entityName)
entityName - public boolean isNeedObjectStorage()
public void setNeedObjectStorage(boolean isNeedObjectStorage)
isNeedObjectStorage - public void setNotification(Notification notification)
notification - public Notification getNotification()