다음을 통해 공유


BidirectionalStream.ICallback.OnWriteCompleted Method

Definition

Invoked when the entire ByteBuffer passed to BidirectionalStream#write write() is sent.

[Android.Runtime.Register("onWriteCompleted", "(Landroid/net/http/BidirectionalStream;Landroid/net/http/UrlResponseInfo;Ljava/nio/ByteBuffer;Z)V", "GetOnWriteCompleted_Landroid_net_http_BidirectionalStream_Landroid_net_http_UrlResponseInfo_Ljava_nio_ByteBuffer_ZHandler:Android.Net.Http.BidirectionalStream/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public void OnWriteCompleted (Android.Net.Http.BidirectionalStream stream, Android.Net.Http.UrlResponseInfo info, Java.Nio.ByteBuffer buffer, bool endOfStream);
[<Android.Runtime.Register("onWriteCompleted", "(Landroid/net/http/BidirectionalStream;Landroid/net/http/UrlResponseInfo;Ljava/nio/ByteBuffer;Z)V", "GetOnWriteCompleted_Landroid_net_http_BidirectionalStream_Landroid_net_http_UrlResponseInfo_Ljava_nio_ByteBuffer_ZHandler:Android.Net.Http.BidirectionalStream/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member OnWriteCompleted : Android.Net.Http.BidirectionalStream * Android.Net.Http.UrlResponseInfo * Java.Nio.ByteBuffer * bool -> unit

Parameters

stream
BidirectionalStream

the stream on which the write completed. <strong>This is not guaranteed to be the same object as the one received by other callbacks, nor is it guaranteed to be the one returned by BidirectionalStream.Builder#build.</strong> However, method calls on this object will have the same effects as calls on the original BidirectionalStream.

info
UrlResponseInfo

the response information

buffer
ByteBuffer

the buffer that was passed to BidirectionalStream#write write(). The buffer's position is set to the buffer's limit. The buffer's limit is not changed.

endOfStream
Boolean

the endOfStream flag that was passed to the corresponding BidirectionalStream#write write(). If true, the write side is closed.

Attributes

Remarks

Invoked when the entire ByteBuffer passed to BidirectionalStream#write write() is sent. The buffer's position is updated to be the same as the buffer's limit. The buffer's limit is not changed. To continue writing, call BidirectionalStream#write write().

Java documentation for android.net.http.BidirectionalStream.Callback.onWriteCompleted(android.net.http.BidirectionalStream, android.net.http.UrlResponseInfo, java.nio.ByteBuffer, boolean).

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