# SurfaceTexture.OnFrameAvailableListener

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

# OnFrameAvailableListener

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/graphics/SurfaceTexture.OnFrameAvailableListener "View this page in Java")  

```
interface OnFrameAvailableListener
```

|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [android.graphics.SurfaceTexture.OnFrameAvailableListener](https://developer.android.com/reference/kotlin/android/graphics/SurfaceTexture.OnFrameAvailableListener#) |

Callback interface for being notified that a new stream frame is available.

## Summary

|                                                                                                                                                                                           Public methods                                                                                                                                                                                            ||
|--------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onFrameAvailable](https://developer.android.com/reference/kotlin/android/graphics/SurfaceTexture.OnFrameAvailableListener#onFrameAvailable(android.graphics.SurfaceTexture))`(`surfaceTexture:` `[SurfaceTexture](https://developer.android.com/reference/kotlin/android/graphics/SurfaceTexture)!`)` <br /> |

## Public methods

### onFrameAvailable

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

```
abstract fun onFrameAvailable(surfaceTexture: SurfaceTexture!): Unit
```