SubscriptionManager.CanManageSubscription(SubscriptionInfo) Method
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.
Checks whether the app with the given context is authorized to manage the given subscription according to its metadata.
[Android.Runtime.Register("canManageSubscription", "(Landroid/telephony/SubscriptionInfo;)Z", "GetCanManageSubscription_Landroid_telephony_SubscriptionInfo_Handler", ApiSince=28)]
public virtual bool CanManageSubscription (Android.Telephony.SubscriptionInfo? info);
[<Android.Runtime.Register("canManageSubscription", "(Landroid/telephony/SubscriptionInfo;)Z", "GetCanManageSubscription_Landroid_telephony_SubscriptionInfo_Handler", ApiSince=28)>]
abstract member CanManageSubscription : Android.Telephony.SubscriptionInfo -> bool
override this.CanManageSubscription : Android.Telephony.SubscriptionInfo -> bool
Parameters
- info
- SubscriptionInfo
The subscription to check.
Returns
whether the app is authorized to manage this subscription per its metadata.
- Attributes
Remarks
Checks whether the app with the given context is authorized to manage the given subscription according to its metadata.
Only supported for embedded subscriptions (if SubscriptionInfo#isEmbedded
returns true). To check for permissions for non-embedded subscription as well, see android.telephony.TelephonyManager#hasCarrierPrivileges
.
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.