IntegrityTokenResponse

public abstract class IntegrityTokenResponse
extends Object

java.lang.Object
   ↳ com.google.android.play.core.integrity.IntegrityTokenResponse


Response for IntegrityManager.requestIntegrityToken(IntegrityTokenRequest).

Summary

Public constructors

IntegrityTokenResponse()

Public methods

abstract Task<Integer> showDialog(Activity activity, int typeCode)

Displays a dialog to the user.

abstract String token()

A token which contains the response for the integrity related enquiries.

Inherited methods

Public constructors

IntegrityTokenResponse

public IntegrityTokenResponse ()

Public methods

showDialog

public abstract Task<Integer> showDialog (Activity activity, 
                int typeCode)

Displays a dialog to the user.

This method can only be called once per Integrity API response.

Parameters
activity Activity

typeCode int: determines which Integrity Dialog type should be shown. The available values can be found in the token().

Returns
Task<Integer> A Task that completes with a IntegrityDialogResponseCode the showDialog flow succeeded or failed.

token

public abstract String token ()

A token which contains the response for the integrity related enquiries.

Returns
String