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