SubscriptionInfo.ServiceCapabilities Property

Definition

Retrieves the service capabilities for the current subscription.

public virtual System.Collections.Generic.ICollection<Java.Lang.Integer> ServiceCapabilities { [Android.Runtime.Register("getServiceCapabilities", "()Ljava/util/Set;", "GetGetServiceCapabilitiesHandler", ApiSince=35)] get; }
[<get: Android.Runtime.Register("getServiceCapabilities", "()Ljava/util/Set;", "GetGetServiceCapabilitiesHandler", ApiSince=35)>]
member this.ServiceCapabilities : System.Collections.Generic.ICollection<Java.Lang.Integer>

Property Value

A set of integer representing the subscription's service capabilities, defined by SubscriptionManager#SERVICE_CAPABILITY_VOICE, SubscriptionManager#SERVICE_CAPABILITY_SMS and SubscriptionManager#SERVICE_CAPABILITY_DATA.

Attributes

Remarks

Retrieves the service capabilities for the current subscription.

These capabilities are hint to system components and applications, allowing them to enhance user experience. For instance, a Dialer application can inform the user that the current subscription is incapable of making voice calls if the voice service is not available.

Correct usage of these service capabilities must also consider the device's overall service capabilities. For example, even if the subscription supports voice calls, a voice call might not be feasible on a device that only supports data services. To determine the device's capabilities for voice and SMS services, refer to TelephonyManager#isDeviceVoiceCapable() and TelephonyManager#isDeviceSmsCapable().

Emergency service availability may not directly correlate with the subscription or device's general service capabilities. In some cases, emergency calls might be possible even if the subscription or device does not typically support voice services.

Java documentation for android.telephony.SubscriptionInfo.getServiceCapabilities().

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