java.lang.Object | |
↳ | com.tencent.map.navi.feedback.screen.report.OneKeyReportManager |
这是一键上报功能的管理类。
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
destoryOneKeyReport()
一键反馈 OneKeyReportManager 的资源释放。
| ||||||||||
static OneKeyReportManager |
getInstance()
获取一键上报 Manager 的单例。
| ||||||||||
void |
setForegroundOptions(ForegroundOptions foregroundOptions)
设置前台通知的样式。
NOTE: 只在 android Q 以上版本生效,Q 版本下,不显示通知。
需要在 | ||||||||||
void |
showOneKeyReportDialog(Context context)
弹出一键上报 UI 选择框。
NOTE: context 为当前的活动 Activity,不是 ApplicationContext,
所以需要在 Activity 销毁或不使用 |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
一键反馈 OneKeyReportManager 的资源释放。
设置前台通知的样式。
NOTE: 只在 android Q 以上版本生效,Q 版本下,不显示通知。
需要在 showOneKeyReportDialog(Context)
方法
调用前设置。
foregroundOptions | 通知样式 |
---|
弹出一键上报 UI 选择框。
NOTE: context 为当前的活动 Activity,不是 ApplicationContext,
所以需要在 Activity 销毁或不使用 OneKeyReportManager
的时候,
通过 destoryOneKeyReport()
释放资源,避免内存泄漏。
context | 当前的活动 |
---|