SubscriptionManager Class

Definition

Subscription manager provides the mobile subscription information.

[Android.Runtime.Register("android/telephony/SubscriptionManager", ApiSince=22, DoNotGenerateAcw=true)]
public class SubscriptionManager : Java.Lang.Object
[<Android.Runtime.Register("android/telephony/SubscriptionManager", ApiSince=22, DoNotGenerateAcw=true)>]
type SubscriptionManager = class
    inherit Object
Inheritance
SubscriptionManager
Attributes

Remarks

Subscription manager provides the mobile subscription information.

Java documentation for android.telephony.SubscriptionManager.

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.

Constructors

SubscriptionManager(IntPtr, JniHandleOwnership)

Fields

ActionDefaultSmsSubscriptionChanged

Broadcast Action: The default sms subscription has changed.

ActionDefaultSubscriptionChanged

Broadcast Action: The default subscription has changed.

ActionManageSubscriptionPlans

Activity Action: Display UI for managing the billing relationship plans between a carrier and a specific subscriber.

ActionRefreshSubscriptionPlans

Broadcast Action: Request a refresh of the billing relationship plans between a carrier and a specific subscriber.

D2dSharingAll
Obsolete.

Device status is shared whenever possible.

D2dSharingAllContacts
Obsolete.

Device status is shared with all numbers in the user's contacts.

D2dSharingDisabled
Obsolete.

Device status is not shared to a remote party.

D2dSharingSelectedContacts
Obsolete.

Device status is shared with all selected contacts.

D2dStatusSharing

TelephonyProvider column name for device to device sharing status.

D2dStatusSharingSelectedContacts

TelephonyProvider column name for contacts information that allow device to device sharing.

ExtraSlotIndex

Integer extra to specify SIM slot index.

ExtraSubscriptionIndex

Integer extra used with #ACTION_DEFAULT_SUBSCRIPTION_CHANGED and #ACTION_DEFAULT_SMS_SUBSCRIPTION_CHANGED to indicate the subscription which has changed.

InvalidSimSlotIndex

Indicates invalid sim slot.

InvalidSubscriptionId

An invalid subscription identifier

PhoneNumberSourceCarrier
Obsolete.

A source of phone number: provided by an app that has carrier privilege.

PhoneNumberSourceIms
Obsolete.

A source of phone number: provided by IMS (IP Multimedia Subsystem) implementation.

PhoneNumberSourceUicc
Obsolete.

A source of phone number: the EF-MSISDN (see 3GPP TS 31.

SubscriptionTypeLocalSim
Obsolete.

This constant is to designate a subscription as a Local-SIM Subscription.

SubscriptionTypeRemoteSim
Obsolete.

This constant is to designate a subscription as a Remote-SIM Subscription.

UsageSettingDataCentric
Obsolete.

This subscription is forced to data-centric mode

UsageSettingDefault
Obsolete.

Subscription uses the default setting.

UsageSettingUnknown
Obsolete.

The usage setting is unknown.

UsageSettingVoiceCentric
Obsolete.

This subscription is forced to voice-centric mode

Properties

AccessibleSubscriptionInfoList

Gets the SubscriptionInfo(s) of all embedded subscriptions accessible to the calling app, if any.

ActiveDataSubscriptionId

Get active data subscription id.

ActiveSubscriptionInfoCount

Get the active subscription count.

ActiveSubscriptionInfoCountMax
ActiveSubscriptionInfoList

Get the SubscriptionInfo(s) of the currently active SIM(s).

AllSubscriptionInfoList

Get all subscription info records from SIMs that are inserted now or previously inserted.

Class

Returns the runtime class of this Object.

(Inherited from Object)
CompleteActiveSubscriptionInfoList

Get both hidden and visible SubscriptionInfo(s) of the currently active SIM(s).

DefaultDataSubscriptionId

Returns the system's default data subscription id.

DefaultSmsSubscriptionId

Returns the system's default SMS subscription id.

DefaultSubscriptionId

Returns the system's default subscription id.

DefaultVoiceSubscriptionId

Returns the system's default voice subscription id.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
OpportunisticSubscriptions

Return opportunistic subscriptions that can be visible to the caller.

PeerReference (Inherited from Object)
ThresholdClass
ThresholdType

Methods

AddOnOpportunisticSubscriptionsChangedListener(IExecutor, SubscriptionManager+OnOpportunisticSubscriptionsChangedListener)

Register for changes to the list of opportunistic subscription records or to the individual records themselves.

AddOnSubscriptionsChangedListener(IExecutor, SubscriptionManager+OnSubscriptionsChangedListener)

Register for changes to the list of active SubscriptionInfo records or to the individual records themselves.

AddOnSubscriptionsChangedListener(SubscriptionManager+OnSubscriptionsChangedListener)

Register for changes to the list of active SubscriptionInfo records or to the individual records themselves.

AddSubscriptionsIntoGroup(IList<Integer>, ParcelUuid)

Add a list of subscriptions into a group.

CanManageSubscription(SubscriptionInfo)

Checks whether the app with the given context is authorized to manage the given subscription according to its metadata.

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
CreateSubscriptionGroup(IList<Integer>)

Inform SubscriptionManager that subscriptions in the list are bundled as a group.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
From(Context)

This member is deprecated.

GetActiveSubscriptionInfo(Int32)

Get the active SubscriptionInfo with the input subId.

GetActiveSubscriptionInfoForSimSlotIndex(Int32)

Get the active SubscriptionInfo associated with the slotIndex

GetDeviceToDeviceStatusSharingContacts(Int32)

Get the list of contacts that allow device to device status sharing.

GetDeviceToDeviceStatusSharingPreference(Int32)

Returns the user-chosen device to device status sharing preference

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetPhoneNumber(Int32)

Returns the phone number for the given subId, or an empty string if not available.

GetPhoneNumber(Int32, Int32)

Returns the phone number for the given subscriptionId and source, or an empty string if not available.

GetSlotIndex(Int32)

Get slotIndex associated with the subscription.

GetSubscriptionId(Int32)

Get the subscription id for specified logical SIM slot index.

GetSubscriptionIds(Int32)

Get an array of subscription ids for the specified logical SIM slot Index.

GetSubscriptionPlans(Int32)

Get the description of the billing relationship plan between a carrier and a specific subscriber.

GetSubscriptionsInGroup(ParcelUuid)

Get subscriptionInfo list of subscriptions that are in the same group of given subId.

IsActiveSubscriptionId(Int32)

Checks if the supplied subscription ID corresponds to a subscription which is actively in use on the device.

IsNetworkRoaming(Int32)

Returns true if the device is considered roaming on the current network for a subscription.

IsUsableSubscriptionId(Int32)

Check if the supplied subscription ID is usable.

IsValidSubscriptionId(Int32)

Check if the supplied subscription ID is valid.

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
RemoveOnOpportunisticSubscriptionsChangedListener(SubscriptionManager+OnOpportunisticSubscriptionsChangedListener)

Unregister the OnOpportunisticSubscriptionsChangedListener that is currently listening opportunistic subscriptions change.

RemoveOnSubscriptionsChangedListener(SubscriptionManager+OnSubscriptionsChangedListener)

Unregister the OnSubscriptionsChangedListener.

RemoveSubscriptionsFromGroup(IList<Integer>, ParcelUuid)

Remove a list of subscriptions from their subscription group.

SetCarrierPhoneNumber(Int32, String)

Sets the phone number for the given subId for source #PHONE_NUMBER_SOURCE_CARRIER carrier.

SetDeviceToDeviceStatusSharingContacts(Int32, IList<Uri>)

Set the list of contacts that allow device to device status sharing for a subscription id.

SetDeviceToDeviceStatusSharingPreference(Int32, Int32)

Set the device to device status sharing user preference for a subscription id.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetOpportunistic(Boolean, Int32)

Set whether a subscription is opportunistic, that is, whether the network it connects to has limited coverage.

SetSubscriptionOverrideCongested(Int32, Boolean, Int32[], Int64)

Temporarily override the billing relationship plan between a carrier and a specific subscriber to be considered congested.

SetSubscriptionOverrideCongested(Int32, Boolean, Int64)

Temporarily override the billing relationship plan between a carrier and a specific subscriber to be considered congested.

SetSubscriptionOverrideUnmetered(Int32, Boolean, Int32[], Int64)

Temporarily override the billing relationship plan between a carrier and a specific subscriber to be considered unmetered.

SetSubscriptionOverrideUnmetered(Int32, Boolean, Int64)

Temporarily override the billing relationship plan between a carrier and a specific subscriber to be considered unmetered.

SetSubscriptionPlans(Int32, IList<SubscriptionPlan>)

Set the description of the billing relationship plan between a carrier and a specific subscriber.

SetSubscriptionPlans(Int32, IList<SubscriptionPlan>, Int64)

Set the description of the billing relationship plan between a carrier and a specific subscriber.

SwitchToSubscription(Int32, PendingIntent)

Switch to a certain subscription

ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to