# A2uiDeleteSurfaceMessage

Artifact: [androidx.a2ui:a2ui-model](https://developer.android.com/jetpack/androidx/releases/a2ui) [View Source](https://cs.android.com/search?q=file:androidx/a2ui/model/protocol/A2uiServerToClientMessage.kt+class:androidx.a2ui.model.protocol.A2uiDeleteSurfaceMessage) Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

*** ** * ** ***


```
public final class A2uiDeleteSurfaceMessage implements A2uiServerToClientMessage
```

<br />

*** ** * ** ***

Destroys an existing surface and frees its associated resources.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiDeleteSurfaceMessage#A2uiDeleteSurfaceMessage(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html surfaceId)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiDeleteSurfaceMessage#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiDeleteSurfaceMessage#getSurfaceId()()` The ID of the surface to delete. |
| `int` | `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiDeleteSurfaceMessage#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/a2ui/model/protocol/A2uiDeleteSurfaceMessage#toString()()` |

## Public constructors

### A2uiDeleteSurfaceMessage

Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

```
public A2uiDeleteSurfaceMessage(@NonNull String surfaceId)
```

## Public methods

### equals

```
public boolean equals(Object other)
```

### getSurfaceId

```
public @NonNull String getSurfaceId()
```

The ID of the surface to delete.

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```