Language

TrafficDescriptor.Builder.SetDataNetworkName(String) Method

Definition

Set the Data Network Name(DNN).

[Android.Runtime.Register("setDataNetworkName", "(Ljava/lang/String;)Landroid/telephony/data/TrafficDescriptor$Builder;", "", ApiSince=31)]
public Android.Telephony.Data.TrafficDescriptor.Builder SetDataNetworkName(string dnn);
[<Android.Runtime.Register("setDataNetworkName", "(Ljava/lang/String;)Landroid/telephony/data/TrafficDescriptor$Builder;", "", ApiSince=31)>]
member this.SetDataNetworkName : string -> Android.Telephony.Data.TrafficDescriptor.Builder

Parameters

dnn
String

The Data Network Name (DNN), which identifies an APN for traffic matching. The builder does not reject an empty string. If the DNN is not set, an OS App ID must be set before calling Build().

Returns

The same instance of the builder. This value cannot be null.

Attributes

Remarks

Set the Data Network Name(DNN).

Android reference for android.telephony.data.TrafficDescriptor.Builder.setDataNetworkName.

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