Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# InlineContentView.SurfaceControlCallback

*** ** * ** ***

` public static interface InlineContentView.SurfaceControlCallback `   
` `

|---|
| android.widget.inline.InlineContentView.SurfaceControlCallback |

<br />

*** ** * ** ***

Callback for observing the lifecycle of the surface control that manipulates the backing secure embedded UI surface.

## Summary

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/widget/inline/InlineContentView.SurfaceControlCallback#onCreated(android.view.SurfaceControl)(https://developer.android.com/reference/android/view/SurfaceControl surfaceControl) ` Called when the backing surface is being created. |
| ` abstract void` | ` https://developer.android.com/reference/android/widget/inline/InlineContentView.SurfaceControlCallback#onDestroyed(android.view.SurfaceControl)(https://developer.android.com/reference/android/view/SurfaceControl surfaceControl) ` Called when the backing surface is being destroyed. |

## Public methods

### onCreated

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onCreated (SurfaceControl surfaceControl)
```

Called when the backing surface is being created.

<br />

| Parameters ||
|---|---|
| `surfaceControl` | `SurfaceControl`: The surface control to manipulate the surface. This value cannot be `null`. <br /> |

### onDestroyed

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onDestroyed (SurfaceControl surfaceControl)
```

Called when the backing surface is being destroyed.

<br />

| Parameters ||
|---|---|
| `surfaceControl` | `SurfaceControl`: The surface control to manipulate the surface. This value cannot be `null`. <br /> |