# DebugViewProvider

Artifact: [androidx.media3:media3-common](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/common/DebugViewProvider.java+class:androidx.media3.common.DebugViewProvider)

*** ** * ** ***


```
@UnstableApi
public interface DebugViewProvider
```

<br />

*** ** * ** ***

Provider for views to show diagnostic information during an export, for debugging.

This is not intended for production use-cases.

## Summary

| ### Constants |
|---|---|
| `default static final https://developer.android.com/reference/androidx/media3/common/DebugViewProvider` | `https://developer.android.com/reference/androidx/media3/common/DebugViewProvider#NONE()` Debug view provider that doesn't show any debug info. |

| ### Public methods |
|---|---|
| `abstract @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/view/SurfaceView.html` | `https://developer.android.com/reference/androidx/media3/common/DebugViewProvider#getDebugPreviewSurfaceView(int,int)(int width, int height)` Returns a new surface view to show a preview of transformer output with the given width/height in pixels, or `null` if no debug information should be shown. |

## Constants

### NONE

```
default static final DebugViewProvider NONE
```

Debug view provider that doesn't show any debug info.

## Public methods

### getDebugPreviewSurfaceView

```
abstract @Nullable SurfaceView getDebugPreviewSurfaceView(int width, int height)
```

Returns a new surface view to show a preview of transformer output with the given width/height in pixels, or `null` if no debug information should be shown.

This method may be called on an arbitrary thread.