# DebugViewProvider

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/common/DebugViewProvider "View this page in Java")

<br />

```
@UnstableApi
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                                                      |
|-------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `const `[DebugViewProvider](https://developer.android.com/reference/kotlin/androidx/media3/common/DebugViewProvider)`!` | [NONE](https://developer.android.com/reference/kotlin/androidx/media3/common/DebugViewProvider#NONE()) Debug view provider that doesn't show any debug info. |

|                                  ### Public functions                                   |
|-----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SurfaceView](https://developer.android.com/reference/android/view/SurfaceView.html)`?` | [getDebugPreviewSurfaceView](https://developer.android.com/reference/kotlin/androidx/media3/common/DebugViewProvider#getDebugPreviewSurfaceView(int,int))`(width: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, height: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` 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

```
const val NONE: DebugViewProvider!
```

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

## Public functions

### getDebugPreviewSurfaceView

```
fun getDebugPreviewSurfaceView(width: Int, height: Int): SurfaceView?
```

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.