Language

ApnSetting.Builder.SetProtocol(Protocols) Method

Definition

Sets the protocol to use to connect to this APN.

[Android.Runtime.Register("setProtocol", "(I)Landroid/telephony/data/ApnSetting$Builder;", "GetSetProtocol_IHandler", ApiSince=28)]
public virtual Android.Telephony.Data.ApnSetting.Builder SetProtocol(Android.Telephony.Data.Protocols protocol);
[<Android.Runtime.Register("setProtocol", "(I)Landroid/telephony/data/ApnSetting$Builder;", "GetSetProtocol_IHandler", ApiSince=28)>]
abstract member SetProtocol : Android.Telephony.Data.Protocols -> Android.Telephony.Data.ApnSetting.Builder
override this.SetProtocol : Android.Telephony.Data.Protocols -> Android.Telephony.Data.ApnSetting.Builder

Parameters

protocol
Protocols

the protocol to set to use to connect to this APN. Value is one of the following: ApnSetting.PROTOCOL_IP; ApnSetting.PROTOCOL_IPV6; ApnSetting.PROTOCOL_IPV4V6; ApnSetting.PROTOCOL_PPP; ApnSetting.PROTOCOL_NON_IP; ApnSetting.PROTOCOL_UNSTRUCTURED

Returns

Attributes

Remarks

Sets the protocol to use to connect to this APN.

Protocol is one of the PDP_type values in TS 27.007 section 10.1.1.

Android reference for android.telephony.data.ApnSetting.Builder.setProtocol.

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