Udostępnij za pośrednictwem


Allocation.SetOnBufferAvailableListener Method

Definition

Set a notification handler for #USAGE_IO_INPUT.

[Android.Runtime.Register("setOnBufferAvailableListener", "(Landroid/renderscript/Allocation$OnBufferAvailableListener;)V", "GetSetOnBufferAvailableListener_Landroid_renderscript_Allocation_OnBufferAvailableListener_Handler")]
public virtual void SetOnBufferAvailableListener (Android.Renderscripts.Allocation.IOnBufferAvailableListener? callback);
[<Android.Runtime.Register("setOnBufferAvailableListener", "(Landroid/renderscript/Allocation$OnBufferAvailableListener;)V", "GetSetOnBufferAvailableListener_Landroid_renderscript_Allocation_OnBufferAvailableListener_Handler")>]
abstract member SetOnBufferAvailableListener : Android.Renderscripts.Allocation.IOnBufferAvailableListener -> unit
override this.SetOnBufferAvailableListener : Android.Renderscripts.Allocation.IOnBufferAvailableListener -> unit

Parameters

callback
Allocation.IOnBufferAvailableListener

instance of the OnBufferAvailableListener class to be called when buffer arrive.

Attributes

Remarks

Java documentation for android.renderscript.Allocation.setOnBufferAvailableListener(android.renderscript.OnBufferAvailableListener).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to