Stay organized with collections
Save and categorize content based on your preferences.
SurfaceTexture.OnFrameAvailableListener
public
static
interface
SurfaceTexture.OnFrameAvailableListener
android.graphics.SurfaceTexture.OnFrameAvailableListener
|
Callback interface for being notified that a new stream frame is available.
Summary
Public methods
onFrameAvailable
public abstract void onFrameAvailable (SurfaceTexture surfaceTexture)
Parameters |
surfaceTexture |
SurfaceTexture |
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](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nSurfaceTexture.OnFrameAvailableListener\n=======================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/graphics/SurfaceTexture.OnFrameAvailableListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nSurfaceTexture.OnFrameAvailableListener\n`\n\n\n`\n\n\n`\n\n|----------------------------------------------------------|\n| android.graphics.SurfaceTexture.OnFrameAvailableListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nCallback interface for being notified that a new stream frame is available.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onFrameAvailable](/reference/android/graphics/SurfaceTexture.OnFrameAvailableListener#onFrameAvailable(android.graphics.SurfaceTexture))`(`[SurfaceTexture](/reference/android/graphics/SurfaceTexture)` surfaceTexture) ` |\n\nPublic methods\n--------------\n\n### onFrameAvailable\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onFrameAvailable (SurfaceTexture surfaceTexture)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------------|-------------------------|\n| `surfaceTexture` | `SurfaceTexture` \u003cbr /\u003e |"]]