# RemoveBlobResponse

Artifact: [androidx.appsearch:appsearch](https://developer.android.com/jetpack/androidx/releases/appsearch) [View Source](https://cs.android.com/search?q=file:androidx/appsearch/app/RemoveBlobResponse.java+class:androidx.appsearch.app.RemoveBlobResponse) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appsearch#1.1.0)

*** ** * ** ***


```
public final class RemoveBlobResponse
```

<br />

*** ** * ** ***

Results of `https://developer.android.com/reference/androidx/appsearch/app/AppSearchSession#removeBlobAsync(java.util.Set<androidx.appsearch.app.AppSearchBlobHandle>)`, containing the outcome of the removal of each handles.

This class is used to retrieve the result of a batch removal operation on a collection of blob handles.

## Summary

| ### Constants |
|---|---|
| `static final @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/os/Parcelable.Creator.html<https://developer.android.com/reference/androidx/appsearch/app/RemoveBlobResponse>` | `https://developer.android.com/reference/androidx/appsearch/app/RemoveBlobResponse#CREATOR()` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/appsearch/app/RemoveBlobResponse#RemoveBlobResponse(androidx.appsearch.app.AppSearchBatchResult<androidx.appsearch.app.AppSearchBlobHandle,java.lang.Void>)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/appsearch/app/AppSearchBatchResult<https://developer.android.com/reference/androidx/appsearch/app/AppSearchBlobHandle, https://developer.android.com/reference/java/lang/Void.html> result )` Creates a `https://developer.android.com/reference/androidx/appsearch/app/RemoveBlobResponse` with given `https://developer.android.com/reference/androidx/appsearch/app/AppSearchBatchResult`. |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/appsearch/app/AppSearchBatchResult<https://developer.android.com/reference/androidx/appsearch/app/AppSearchBlobHandle, https://developer.android.com/reference/java/lang/Void.html>` | `https://developer.android.com/reference/androidx/appsearch/app/RemoveBlobResponse#getResult()()` Returns the `https://developer.android.com/reference/androidx/appsearch/app/AppSearchBatchResult` object containing the results of the removal operation for each `https://developer.android.com/reference/androidx/appsearch/app/AppSearchBlobHandle`. |
| `void` | `https://developer.android.com/reference/androidx/appsearch/app/RemoveBlobResponse#writeToParcel(android.os.Parcel,int)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/os/Parcel.html dest, int flags)` To be implemented by child classes. |

## Constants

### CREATOR

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appsearch#1.1.0)

```
public static final @NonNull Parcelable.Creator<RemoveBlobResponse> CREATOR
```

## Public constructors

### RemoveBlobResponse

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appsearch#1.1.0)

```
public RemoveBlobResponse(
    @NonNull AppSearchBatchResult<AppSearchBlobHandle, Void> result
)
```

Creates a `https://developer.android.com/reference/androidx/appsearch/app/RemoveBlobResponse` with given `https://developer.android.com/reference/androidx/appsearch/app/AppSearchBatchResult`.

## Public methods

### getResult

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appsearch#1.1.0)

```
public @NonNull AppSearchBatchResult<AppSearchBlobHandle, Void> getResult()
```

Returns the `https://developer.android.com/reference/androidx/appsearch/app/AppSearchBatchResult` object containing the results of the removal operation for each `https://developer.android.com/reference/androidx/appsearch/app/AppSearchBlobHandle`.

| Returns |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/appsearch/app/AppSearchBatchResult<https://developer.android.com/reference/androidx/appsearch/app/AppSearchBlobHandle, https://developer.android.com/reference/java/lang/Void.html>` | A `https://developer.android.com/reference/androidx/appsearch/app/AppSearchBatchResult` maps `https://developer.android.com/reference/androidx/appsearch/app/AppSearchBlobHandle`s which is a unique identifier for a specific blob being removed to the outcome of that commit. If the operation was successful, the result for that handle is `null`; if there was an error, the result contains an `https://developer.android.com/reference/androidx/appsearch/app/AppSearchResult` with details of the failure. |

### writeToParcel

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appsearch#1.1.0)

```
public void writeToParcel(@NonNull Parcel dest, int flags)
```

To be implemented by child classes.

This is purely for code sync purpose. Have `writeToParcel` here so we can keep "@Override" in child classes.