介面 ConsentDebugSettings

偵錯設定,可在測試要求中硬式編碼,以requestConsentInfoUpdate。
屬性
debugGeography
測試用的偵錯地理區域。
testDeviceIdentifiers
允許使用這些偵錯設定的已註冊測試裝置 ID 陣列,例如實體 iPhone 或 Android 手機。

屬性


debugGeography

debugGeography: DebugGeography
測試用的偵錯地理區域。

testDeviceIdentifiers

testDeviceIdentifiers: string[]
已註冊的測試裝置 ID 陣列,例如實體 iPhone 或 Android 手機,允許使用這些偵錯設定。

測試裝置會遵守偵錯地理位置設定,方便您進行測試。您必須個別新增測試裝置,以免偵錯地理位置設定不慎發布給所有使用者。

應用程式呼叫 requestConsentInfoUpdate 後,您就能從 logcat 存取雜湊裝置 ID。