VpnService.Builder.SetBlocking(Boolean) Method

Definition

Sets whether the VPN interface file descriptor uses blocking I/O.

[Android.Runtime.Register("setBlocking", "(Z)Landroid/net/VpnService$Builder;", "GetSetBlocking_ZHandler")]
public virtual Android.Net.VpnService.Builder SetBlocking(bool blocking);
[<Android.Runtime.Register("setBlocking", "(Z)Landroid/net/VpnService$Builder;", "GetSetBlocking_ZHandler")>]
abstract member SetBlocking : bool -> Android.Net.VpnService.Builder
override this.SetBlocking : bool -> Android.Net.VpnService.Builder

Parameters

blocking
Boolean

true for blocking I/O; false for non-blocking I/O, which is the default.

Returns

This builder.

Attributes

Remarks

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.

Java documentation for android.net.VpnService.Builder.setBlocking(boolean).

Applies to