Share via


CarrierIdentifier Constructors

Definition

Overloads

CarrierIdentifier(IntPtr, JniHandleOwnership)
CarrierIdentifier(Byte[], String, String)

Creates a carrier identifier instance.

CarrierIdentifier(String, String, String, String, String, String)
CarrierIdentifier(String, String, String, String, String, String, Int32, Int32)

CarrierIdentifier(IntPtr, JniHandleOwnership)

protected CarrierIdentifier (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Service.Carrier.CarrierIdentifier : nativeint * Android.Runtime.JniHandleOwnership -> Android.Service.Carrier.CarrierIdentifier

Parameters

javaReference
IntPtr

nativeint

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.

Applies to

CarrierIdentifier(Byte[], String, String)

Creates a carrier identifier instance.

[Android.Runtime.Register(".ctor", "([BLjava/lang/String;Ljava/lang/String;)V", "", ApiSince=28)]
public CarrierIdentifier (byte[]? mccMnc, string? gid1, string? gid2);
[<Android.Runtime.Register(".ctor", "([BLjava/lang/String;Ljava/lang/String;)V", "", ApiSince=28)>]
new Android.Service.Carrier.CarrierIdentifier : byte[] * string * string -> Android.Service.Carrier.CarrierIdentifier

Parameters

mccMnc
Byte[]

A 3-byte array as defined by 3GPP TS 24.008.

gid1
String

The group identifier level 1.

gid2
String

The group identifier level 2.

Attributes

Remarks

Creates a carrier identifier instance.

Java documentation for android.service.carrier.CarrierIdentifier.CarrierIdentifier(byte[], java.lang.String, java.lang.String).

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

CarrierIdentifier(String, String, String, String, String, String)

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=23)]
public CarrierIdentifier (string? mcc, string? mnc, string? spn, string? imsi, string? gid1, string? gid2);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=23)>]
new Android.Service.Carrier.CarrierIdentifier : string * string * string * string * string * string -> Android.Service.Carrier.CarrierIdentifier

Parameters

mcc
String
mnc
String
spn
String
imsi
String
gid1
String
gid2
String
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.

Applies to

CarrierIdentifier(String, String, String, String, String, String, Int32, Int32)

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;II)V", "", ApiSince=29)]
public CarrierIdentifier (string mcc, string mnc, string? spn, string? imsi, string? gid1, string? gid2, int carrierid, int specificCarrierId);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;II)V", "", ApiSince=29)>]
new Android.Service.Carrier.CarrierIdentifier : string * string * string * string * string * string * int * int -> Android.Service.Carrier.CarrierIdentifier

Parameters

mcc
String

mobile country code

mnc
String

mobile network code

spn
String

service provider name

imsi
String

International Mobile Subscriber Identity TelephonyManager#getSubscriberId()

gid1
String

group id level 1 TelephonyManager#getGroupIdLevel1()

gid2
String

group id level 2

carrierid
Int32

carrier unique identifier TelephonyManager#getSimCarrierId(), used to uniquely identify the carrier and look up the carrier configurations.

specificCarrierId
Int32

specific carrier identifier TelephonyManager#getSimSpecificCarrierId()

Attributes

Remarks

Java documentation for android.service.carrier.CarrierIdentifier.CarrierIdentifier(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, int).

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