# StandardIntegrityManager.StandardIntegrityDialogRequest.Builder

<br />

```
public abstract class StandardIntegrityManager.StandardIntegrityDialogRequest.Builder
```

<br />

*** ** * ** ***

Builder for[StandardIntegrityDialogRequest](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityDialogRequest).

## Summary

|                                                                                    ### Public constructors                                                                                    |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Builder](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityDialogRequest.Builder#Builder())`()` |

|                                                                                                                 ### Public methods                                                                                                                 |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `abstract `[StandardIntegrityManager.StandardIntegrityDialogRequest](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityDialogRequest)                 | [build](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityDialogRequest.Builder#build())`()` Builds a[StandardIntegrityDialogRequest](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityDialogRequest).                                                                                                                                                                                                                                                                                                                                      |
| `abstract `[StandardIntegrityManager.StandardIntegrityDialogRequest.Builder](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityDialogRequest.Builder) | [setActivity](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityDialogRequest.Builder#setActivity(android.app.Activity))`(`[Activity](https://developer.android.com/reference/android/app/Activity.html)` activity)` Sets the activity to be used to show the dialog.                                                                                                                                                                                                                                                                                                                                                                     |
| `abstract `[StandardIntegrityManager.StandardIntegrityDialogRequest.Builder](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityDialogRequest.Builder) | [setStandardIntegrityResponse](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityDialogRequest.Builder#setStandardIntegrityResponse(com.google.android.play.core.integrity.StandardIntegrityManager.StandardIntegrityDialogRequest.StandardIntegrityResponse))`(` ` `[StandardIntegrityManager.StandardIntegrityDialogRequest.StandardIntegrityResponse](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityDialogRequest.StandardIntegrityResponse)` standardIntegrityResponse` `)` Sets the integrity check outcome for the dialog request. |
| `abstract `[StandardIntegrityManager.StandardIntegrityDialogRequest.Builder](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityDialogRequest.Builder) | [setTypeCode](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityDialogRequest.Builder#setTypeCode(int))`(int typeCode)` Sets the dialog type.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |

## Public constructors

### Builder

```
public Builder()
```  

## Public methods

### build

```
public abstract StandardIntegrityManager.StandardIntegrityDialogRequest build()
```

Builds a[StandardIntegrityDialogRequest](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityDialogRequest).  

### setActivity

```
public abstract StandardIntegrityManager.StandardIntegrityDialogRequest.Builder setActivity(Activity activity)
```

Sets the activity to be used to show the dialog.  

|                                        Parameters                                        |
|------------------------------------------------------------------------------------------|-----------------------------------------------------|
| [Activity](https://developer.android.com/reference/android/app/Activity.html)` activity` | the android activity to be used to show the dialog. |

### setStandardIntegrityResponse

```
public abstract StandardIntegrityManager.StandardIntegrityDialogRequest.Builder setStandardIntegrityResponse(
    StandardIntegrityManager.StandardIntegrityDialogRequest.StandardIntegrityResponse standardIntegrityResponse
)
```

Sets the integrity check outcome for the dialog request.  

|                                                                                                                                               Parameters                                                                                                                                                |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [StandardIntegrityManager.StandardIntegrityDialogRequest.StandardIntegrityResponse](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityDialogRequest.StandardIntegrityResponse)` standardIntegrityResponse` | The[StandardIntegrityResponse](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityDialogRequest.StandardIntegrityResponse)representing either a successful[StandardIntegrityResponse.TokenResponse](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityDialogRequest.StandardIntegrityResponse.TokenResponse)or a failed[StandardIntegrityResponse.ExceptionDetails](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityDialogRequest.StandardIntegrityResponse.ExceptionDetails). |

### setTypeCode

```
public abstract StandardIntegrityManager.StandardIntegrityDialogRequest.Builder setTypeCode(int typeCode)
```

Sets the dialog type.  

|   Parameters   |
|----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int typeCode` | determines which[IntegrityDialogTypeCode](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/IntegrityDialogTypeCode)should be shown. |