Language

ApnSetting.Builder.SetApnTypeBitmask(ApnType) Method

Definition

Sets the bitmask of APN types.

[Android.Runtime.Register("setApnTypeBitmask", "(I)Landroid/telephony/data/ApnSetting$Builder;", "GetSetApnTypeBitmask_IHandler", ApiSince=28)]
public virtual Android.Telephony.Data.ApnSetting.Builder SetApnTypeBitmask(Android.Telephony.Data.ApnType apnTypeBitmask);
[<Android.Runtime.Register("setApnTypeBitmask", "(I)Landroid/telephony/data/ApnSetting$Builder;", "GetSetApnTypeBitmask_IHandler", ApiSince=28)>]
abstract member SetApnTypeBitmask : Android.Telephony.Data.ApnType -> Android.Telephony.Data.ApnSetting.Builder
override this.SetApnTypeBitmask : Android.Telephony.Data.ApnType -> Android.Telephony.Data.ApnSetting.Builder

Parameters

apnTypeBitmask
ApnType

a bitmask describing the types of the APN. Value is either 0 or a combination of the following: ApnSetting.TYPE_DEFAULT; ApnSetting.TYPE_MMS; ApnSetting.TYPE_SUPL; ApnSetting.TYPE_DUN; ApnSetting.TYPE_HIPRI; ApnSetting.TYPE_FOTA; ApnSetting.TYPE_IMS; ApnSetting.TYPE_CBS; ApnSetting.TYPE_IA; ApnSetting.TYPE_EMERGENCY; ApnSetting.TYPE_MCX; ApnSetting.TYPE_XCAP; ApnSetting.TYPE_BIP; ApnSetting.TYPE_VSIM; ApnSetting.TYPE_ENTERPRISE; ApnSetting.TYPE_RCS; ApnSetting.TYPE_OEM_PAID; ApnSetting.TYPE_OEM_PRIVATE

Returns

Attributes

Remarks

Sets the bitmask of APN types.

Apn types are usage categories for an APN entry. One APN entry may support multiple APN types, eg, a single APN may service regular internet traffic ("default") as well as MMS-specific connections.

The bitmask of APN types is calculated from APN types defined in ApnSetting.

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

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