ConsentDebugSettings

public class ConsentDebugSettings


要对 requestConsentInfoUpdate 的测试请求进行硬编码的调试设置。

摘要

嵌套类型

ConsentDebugSettings 的构建器。

@Retention(value = SOURCE)
@IntDef(value = [DebugGeography.DEBUG_GEOGRAPHY_DISABLED, DebugGeography.DEBUG_GEOGRAPHY_EEA, DebugGeography.DEBUG_GEOGRAPHY_NOT_EEA, DebugGeography.DEBUG_GEOGRAPHY_REGULATED_US_STATE, DebugGeography.DEBUG_GEOGRAPHY_OTHER])
public annotation ConsentDebugSettings.DebugGeography

用于测试地理位置的调试值。

公共字段

final int
final boolean

公共方法

int

获取调试地理位置。

boolean

如果此设备是测试设备,则返回 true

公共字段

debugGeography

@ConsentDebugSettings.DebugGeography
public final int debugGeography

isTestDevice

public final boolean isTestDevice

公共方法

getDebugGeography

@ConsentDebugSettings.DebugGeography
public int getDebugGeography()

获取调试地理位置。

isTestDevice

public boolean isTestDevice()

如果此设备是测试设备,则返回 true