SubscriptionManager Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
SubscriptionManager is the application interface to SubscriptionController and provides information about the current Telephony Subscriptions.
[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
- Attributes
Remarks
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 |
| InvalidSimSlotIndex |
Indicates invalid sim slot. |
| InvalidSubscriptionId |
An invalid subscription identifier |
| 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. |
Properties
| AccessibleSubscriptionInfoList |
Gets the SubscriptionInfo(s) of all embedded subscriptions accessible to the calling app, if any. |
| ActiveDataSubscriptionId |
Get active data subscription id. |
| ActiveSubscriptionInfoCount |
Requires Permission: |
| ActiveSubscriptionInfoCountMax | |
| ActiveSubscriptionInfoList |
Get the SubscriptionInfo(s) of the currently active SIM(s). |
| Class |
Returns the runtime class of this |
| 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 |
| AddOnSubscriptionsChangedListener(SubscriptionManager+OnSubscriptionsChangedListener) |
Obsolete.
Register for changes to the list of active |
| AddSubscriptionsIntoGroup(IList<Integer>, ParcelUuid) |
Add a list of subscriptions into a group. |
| CanManageSubscription(SubscriptionInfo) | |
| 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) | |
| GetActiveSubscriptionInfo(Int32) |
Get the active SubscriptionInfo with the input subId. |
| GetActiveSubscriptionInfoForSimSlotIndex(Int32) |
Get the active SubscriptionInfo associated with the slotIndex |
| GetDeviceToDeviceStatusSharingContacts(Int32) |
Returns 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) |
| GetSlotIndex(Int32) |
Get slotIndex associated with the subscription. |
| GetSubscriptionIds(Int32) |
Get an array of Subscription Ids for specified 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 |
| RemoveOnSubscriptionsChangedListener(SubscriptionManager+OnSubscriptionsChangedListener) |
Unregister the |
| RemoveSubscriptionsFromGroup(IList<Integer>, ParcelUuid) |
Remove a list of subscriptions from their subscription group. |
| 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. |
| 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 another thread invokes the
|
| Wait(Int64) |
Causes the current thread to wait until either another thread invokes the
|
| Wait(Int64, Int32) |
Causes the current thread to wait until another thread invokes the
|
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) | |