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

# Allocation.OnBufferAvailableListener

*** ** * ** ***

` public static interface Allocation.OnBufferAvailableListener `   
` `

|---|
| android.renderscript.Allocation.OnBufferAvailableListener |

<br />

*** ** * ** ***

Interface to handle notification when new buffers are available via `https://developer.android.com/reference/android/renderscript/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 ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/renderscript/Allocation.OnBufferAvailableListener#onBufferAvailable(android.renderscript.Allocation)(https://developer.android.com/reference/android/renderscript/Allocation a) ` |

## Public methods

### onBufferAvailable

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

```
public abstract void onBufferAvailable (Allocation a)
```

<br />

<br />

| Parameters ||
|---|---|
| `a` | `Allocation` <br /> |