Language

DevicePolicyManager.IsOutgoingEsimTransferAllowed(Int32) Method

Definition

Returns whether an outgoing eSIM transfer is allowed for a specific subscription.

[Android.Runtime.Register("isOutgoingEsimTransferAllowed", "(I)Z", "GetIsOutgoingEsimTransferAllowed_IHandler", ApiSince=37)]
public virtual bool IsOutgoingEsimTransferAllowed(int subscriptionId);
[<Android.Runtime.Register("isOutgoingEsimTransferAllowed", "(I)Z", "GetIsOutgoingEsimTransferAllowed_IHandler", ApiSince=37)>]
abstract member IsOutgoingEsimTransferAllowed : int -> bool
override this.IsOutgoingEsimTransferAllowed : int -> bool

Parameters

subscriptionId
Int32

The ID of the subscription to check.

Returns

true if the eSIM transfer is allowed, or if the subscription is not managed or is a pSIM. Returns false if the subscription is a managed eSIM and the transfer is disallowed by policy.

Attributes

Remarks

Returns whether an outgoing eSIM transfer is allowed for a specific subscription.

An eSIM transfer is disallowed if the subscription is a managed subscription and the transfer is disallowed by policy. For non-managed subscriptions or physical SIMs (pSIMs), this method will always return true.

Android reference for android.app.admin.DevicePolicyManager.isOutgoingEsimTransferAllowed.

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