Stay organized with collections
Save and categorize content based on your preferences.
OnFrameAvailableListener
interface OnFrameAvailableListener
Callback interface for being notified that a new stream frame is available.
Summary
Public methods |
abstract Unit |
|
Public methods
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# SurfaceTexture.OnFrameAvailableListener\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnFrameAvailableListener\n========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/graphics/SurfaceTexture.OnFrameAvailableListener \"View this page in Java\") \n\n```\ninterface OnFrameAvailableListener\n```\n\n|---------------------------------------------------------------|\n| [android.graphics.SurfaceTexture.OnFrameAvailableListener](#) |\n\nCallback interface for being notified that a new stream frame is available.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onFrameAvailable](#onFrameAvailable(android.graphics.SurfaceTexture))`(`surfaceTexture:` `[SurfaceTexture](/reference/kotlin/android/graphics/SurfaceTexture)!`)` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### onFrameAvailable\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onFrameAvailable(surfaceTexture: SurfaceTexture!): Unit\n```"]]