共用方式為


DevicePolicyManager.ManagedSubscriptionsPolicy Property

Definition

Returns the current ManagedSubscriptionsPolicy. -or- Called by a profile owner of an organization-owned device to specify ManagedSubscriptionsPolicy

public virtual Android.App.Admin.ManagedSubscriptionsPolicy ManagedSubscriptionsPolicy { [Android.Runtime.Register("getManagedSubscriptionsPolicy", "()Landroid/app/admin/ManagedSubscriptionsPolicy;", "GetGetManagedSubscriptionsPolicyHandler", ApiSince=34)] get; [Android.Runtime.Register("setManagedSubscriptionsPolicy", "(Landroid/app/admin/ManagedSubscriptionsPolicy;)V", "GetSetManagedSubscriptionsPolicy_Landroid_app_admin_ManagedSubscriptionsPolicy_Handler", ApiSince=34)] set; }
[<get: Android.Runtime.Register("getManagedSubscriptionsPolicy", "()Landroid/app/admin/ManagedSubscriptionsPolicy;", "GetGetManagedSubscriptionsPolicyHandler", ApiSince=34)>]
[<set: Android.Runtime.Register("setManagedSubscriptionsPolicy", "(Landroid/app/admin/ManagedSubscriptionsPolicy;)V", "GetSetManagedSubscriptionsPolicy_Landroid_app_admin_ManagedSubscriptionsPolicy_Handler", ApiSince=34)>]
member this.ManagedSubscriptionsPolicy : Android.App.Admin.ManagedSubscriptionsPolicy with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Returns the current ManagedSubscriptionsPolicy. If the policy has not been set, it will return a default policy of Type ManagedSubscriptionsPolicy#TYPE_ALL_PERSONAL_SUBSCRIPTIONS.

Java documentation for android.app.admin.DevicePolicyManager.getManagedSubscriptionsPolicy().

Property setter documentation:

Called by a profile owner of an organization-owned device to specify ManagedSubscriptionsPolicy

Managed subscriptions policy controls how SIMs would be associated with the managed profile. For example a policy of type ManagedSubscriptionsPolicy#TYPE_ALL_MANAGED_SUBSCRIPTIONS assigns all SIM-based subscriptions to the managed profile. In this case OEM default dialer and messages app are automatically installed in the managed profile and all incoming and outgoing calls and text messages are handled by them.

This API can only be called during device setup.

Java documentation for android.app.admin.DevicePolicyManager.setManagedSubscriptionsPolicy(android.app.admin.ManagedSubscriptionsPolicy).

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