StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder

public abstract class StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder


Builder for PrepareIntegrityTokenRequest.

Summary

Public constructors

Public methods

abstract StandardIntegrityManager.PrepareIntegrityTokenRequest

Builds a PrepareIntegrityTokenRequest.

abstract StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder

A cloud project number to link to the integrity token.

abstract StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder

The WebView request mode to apply during token preparation.

Public constructors

Builder

public Builder()

Public methods

setCloudProjectNumber

public abstract StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder setCloudProjectNumber(long value)

A cloud project number to link to the integrity token.

This field is required.

Cloud project number can be found in Project info in your Google Cloud Console for the cloud project where Play Integrity API is enabled.

Calls to decrypt the token on Google's server must be authenticated using the cloud account that was linked to the token in this request.

setWebViewRequestMode

public abstract StandardIntegrityManager.PrepareIntegrityTokenRequest.Builder setWebViewRequestMode(int value)

The WebView request mode to apply during token preparation.

This parameter is only used for advanced system use cases and must be left unspecified by app, game, or SDK developers.

A standard integrity WebView request mode that allows WebView to specify a subset of integrity verdicts to be received. The available values can be found in the StandardIntegrityWebViewRequestMode.

Caller must be allowlisted to be able to call the standard integrity API using this mode.

Unspecified by default.

Since 1.6.0