L2capNetworkSpecifier.Builder.SetRole(Int32) Method

Definition

Sets the role for this L2CAP network.

[Android.Runtime.Register("setRole", "(I)Landroid/net/L2capNetworkSpecifier$Builder;", "", ApiSince=36)]
public Android.Net.L2capNetworkSpecifier.Builder SetRole(int role);
[<Android.Runtime.Register("setRole", "(I)Landroid/net/L2capNetworkSpecifier$Builder;", "", ApiSince=36)>]
member this.SetRole : int -> Android.Net.L2capNetworkSpecifier.Builder

Parameters

role
Int32

One of ROLE_ANY (0), ROLE_CLIENT (1), or ROLE_SERVER (2). The default is ROLE_ANY.

Returns

This builder.

Attributes

Remarks

Java documentation for android.net.L2capNetworkSpecifier.Builder.setRole(int).

Applies to