Stay organized with collections
Save and categorize content based on your preferences.
Allocation.OnBufferAvailableListener
public
static
interface
Allocation.OnBufferAvailableListener
android.renderscript.Allocation.OnBufferAvailableListener
|
Interface to handle notification when new buffers are available via
Allocation.USAGE_IO_INPUT
. An application will receive one notification
when a buffer is available. Additional buffers will not trigger new
notifications until a buffer is processed.
Summary
Public methods
onBufferAvailable
public abstract void onBufferAvailable (Allocation a)
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,["# Allocation.OnBufferAvailableListener\n\nAdded in [API level 19](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n31](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nAllocation.OnBufferAvailableListener\n====================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/renderscript/Allocation.OnBufferAvailableListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nAllocation.OnBufferAvailableListener\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------------------------|\n| android.renderscript.Allocation.OnBufferAvailableListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface to handle notification when new buffers are available via\n[Allocation.USAGE_IO_INPUT](/reference/android/renderscript/Allocation#USAGE_IO_INPUT). An application will receive one notification\nwhen a buffer is available. Additional buffers will not trigger new\nnotifications until a buffer is processed.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onBufferAvailable](/reference/android/renderscript/Allocation.OnBufferAvailableListener#onBufferAvailable(android.renderscript.Allocation))`(`[Allocation](/reference/android/renderscript/Allocation)` a) ` |\n\nPublic methods\n--------------\n\n### onBufferAvailable\n\nAdded in [API level 19](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onBufferAvailable (Allocation a)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----|---------------------|\n| `a` | `Allocation` \u003cbr /\u003e |"]]