Class Info |
|---|
public class Consent extends Object 用户意见征求类。 |
Qualifier and Type | Method Name and Description |
|---|---|
void | addTestDeviceId(String testDeviceId) 增加测试设备ID。 |
static synchronized Consent | getInstance(Context context) 获取用户意见征求类实例。 |
String | 获取测试设备ID。 |
void | requestConsentUpdate(final ConsentUpdateListener listener) 请求用户意见更新状态。 |
void | setConsentStatus(ConsentStatus consentStatus) 设置用户意见。 |
void | setDebugNeedConsent(DebugNeedConsent debugNeedConsent) 设置调试是否需要用户意见征求。 |
void | setUnderAgeOfPromise(boolean underAgeOfPromise) 设置“未达到法定承诺年龄用户”的标记。 |
Method |
|---|
public void addTestDeviceId(String testDeviceId) 增加测试设备ID。 |
Parameters
Name | Description |
|---|---|
testDeviceId | 测试设备ID。 |
Method |
|---|
public static synchronized Consent getInstance(Context context) 获取用户意见征求类实例。 |
Parameters
Name | Description |
|---|---|
context | 上下文。 |
Method |
|---|
public String getTestDeviceId() 获取测试设备ID。 |
Returns
Name | Description |
|---|---|
String | 测试设备ID。 |
Method |
|---|
public void requestConsentUpdate(final ConsentUpdateListener listener) 请求用户意见更新状态。 |
Parameters
Name | Description |
|---|---|
listener | 用户意见更新监听器。 |
Method |
|---|
public void setConsentStatus(ConsentStatus consentStatus) 设置用户意见。 |
Parameters
Name | Description |
|---|---|
consentStatus | 用户意见。 |
Method |
|---|
public void setDebugNeedConsent(DebugNeedConsent debugNeedConsent) 设置调试是否需要用户意见征求。 |
Parameters
Name | Description |
|---|---|
debugNeedConsent | 调试是否需要征求用户意见。 |