Dil

HttpEngine.NewBidirectionalStreamBuilder Method

Definition

Creates a builder for BidirectionalStream objects.

[Android.Runtime.Register("newBidirectionalStreamBuilder", "(Ljava/lang/String;Ljava/util/concurrent/Executor;Landroid/net/http/BidirectionalStream$Callback;)Landroid/net/http/BidirectionalStream$Builder;", "GetNewBidirectionalStreamBuilder_Ljava_lang_String_Ljava_util_concurrent_Executor_Landroid_net_http_BidirectionalStream_Callback_Handler", ApiSince=34)]
public abstract Android.Net.Http.BidirectionalStream.Builder NewBidirectionalStreamBuilder(string url, Java.Util.Concurrent.IExecutor executor, Android.Net.Http.BidirectionalStream.ICallback callback);
[<Android.Runtime.Register("newBidirectionalStreamBuilder", "(Ljava/lang/String;Ljava/util/concurrent/Executor;Landroid/net/http/BidirectionalStream$Callback;)Landroid/net/http/BidirectionalStream$Builder;", "GetNewBidirectionalStreamBuilder_Ljava_lang_String_Ljava_util_concurrent_Executor_Landroid_net_http_BidirectionalStream_Callback_Handler", ApiSince=34)>]
abstract member NewBidirectionalStreamBuilder : string * Java.Util.Concurrent.IExecutor * Android.Net.Http.BidirectionalStream.ICallback -> Android.Net.Http.BidirectionalStream.Builder

Parameters

url
String

URL for the generated streams. This value cannot be null.

executor
IExecutor

the Executor on which callback methods will be invoked. This value cannot be null.

callback
BidirectionalStream.ICallback

the BidirectionalStream.Callback object that gets invoked upon different events occurring. This value cannot be null.

Returns

the created builder. This value cannot be null.

Attributes

Remarks

Creates a builder for BidirectionalStream objects. All callbacks for generated BidirectionalStream objects will be invoked on executor. executor must not run tasks on the current thread, otherwise the networking operations may block and exceptions may be thrown at shutdown time.

Android reference for android.net.http.HttpEngine.newBidirectionalStreamBuilder.

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