Android APIs
public class

CarrierIdentifier

extends Object
implements Parcelable
java.lang.Object
   ↳ android.service.carrier.CarrierIdentifier

Class Overview

Used to pass info to CarrierConfigService implementations so they can decide what values to return.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<CarrierIdentifier> CREATOR Used to create a CarrierIdentifier from a Parcel.
Public Constructors
CarrierIdentifier(String mcc, String mnc, String spn, String imsi, String gid1, String gid2)
Public Methods
int describeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
String getGid1()
Get the group identifier level 1.
String getGid2()
Get the group identifier level 2.
String getImsi()
Get the international mobile subscriber identity.
String getMcc()
Get the mobile country code.
String getMnc()
Get the mobile network code.
String getSpn()
Get the service provider name.
void writeToParcel(Parcel out, int flags)
Flatten this object in to a Parcel.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<CarrierIdentifier> CREATOR

Added in API level 23

Used to create a CarrierIdentifier from a Parcel.

Public Constructors

public CarrierIdentifier (String mcc, String mnc, String spn, String imsi, String gid1, String gid2)

Added in API level 23

Public Methods

public int describeContents ()

Added in API level 23

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Returns
  • a bitmask indicating the set of special object types marshalled by the Parcelable.

public String getGid1 ()

Added in API level 23

Get the group identifier level 1.

public String getGid2 ()

Added in API level 23

Get the group identifier level 2.

public String getImsi ()

Added in API level 23

Get the international mobile subscriber identity.

public String getMcc ()

Added in API level 23

Get the mobile country code.

public String getMnc ()

Added in API level 23

Get the mobile network code.

public String getSpn ()

Added in API level 23

Get the service provider name.

public void writeToParcel (Parcel out, int flags)

Added in API level 23

Flatten this object in to a Parcel.

Parameters
out The Parcel in which the object should be written.
flags Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE.