Use Tree Navigation
public class

OneKeyReportManager

extends Object
java.lang.Object
   ↳ com.tencent.map.navi.feedback.screen.report.OneKeyReportManager

Class Overview

这是一键上报功能的管理类。

Summary

Public Methods
void destoryOneKeyReport()
一键反馈 OneKeyReportManager 的资源释放。
static OneKeyReportManager getInstance()
获取一键上报 Manager 的单例。
void setForegroundOptions(ForegroundOptions foregroundOptions)
设置前台通知的样式。

NOTE: 只在 android Q 以上版本生效,Q 版本下,不显示通知。 需要在 showOneKeyReportDialog(Context) 方法 调用前设置。

void showOneKeyReportDialog(Context context)
弹出一键上报 UI 选择框。

NOTE: context 为当前的活动 Activity,不是 ApplicationContext, 所以需要在 Activity 销毁或不使用 OneKeyReportManager 的时候, 通过 destoryOneKeyReport() 释放资源,避免内存泄漏。

[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void destoryOneKeyReport ()

一键反馈 OneKeyReportManager 的资源释放。

public static OneKeyReportManager getInstance ()

获取一键上报 Manager 的单例。

public void setForegroundOptions (ForegroundOptions foregroundOptions)

设置前台通知的样式。

NOTE: 只在 android Q 以上版本生效,Q 版本下,不显示通知。 需要在 showOneKeyReportDialog(Context) 方法 调用前设置。

Parameters
foregroundOptions 通知样式

public void showOneKeyReportDialog (Context context)

弹出一键上报 UI 选择框。

NOTE: context 为当前的活动 Activity,不是 ApplicationContext, 所以需要在 Activity 销毁或不使用 OneKeyReportManager 的时候, 通过 destoryOneKeyReport() 释放资源,避免内存泄漏。

Parameters
context 当前的活动