Condividi tramite


TelephonyManager.SimCarrierId Property

Definition

Returns carrier id of the current subscription.

public virtual int SimCarrierId { [Android.Runtime.Register("getSimCarrierId", "()I", "GetGetSimCarrierIdHandler", ApiSince=28)] get; }
[<get: Android.Runtime.Register("getSimCarrierId", "()I", "GetGetSimCarrierIdHandler", ApiSince=28)>]
member this.SimCarrierId : int

Property Value

Carrier id of the current subscription. Return #UNKNOWN_CARRIER_ID if the subscription is unavailable or the carrier cannot be identified.

Attributes

Remarks

Returns carrier id of the current subscription.

To recognize a carrier (including MVNO) as a first-class identity, Android assigns each carrier with a canonical integer a.k.a. carrier id. The carrier ID is an Android platform-wide identifier for a carrier. AOSP maintains carrier ID assignments in here

Apps which have carrier-specific configurations or business logic can use the carrier id as an Android platform-wide identifier for carriers.

Java documentation for android.telephony.TelephonyManager.getSimCarrierId().

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