DownloadableSubscription.ForActivationCode(String) Method

Definition

Create a DownloadableSubscription for the given activation code.

[Android.Runtime.Register("forActivationCode", "(Ljava/lang/String;)Landroid/telephony/euicc/DownloadableSubscription;", "", ApiSince=28)]
public static Android.Telephony.Euicc.DownloadableSubscription? ForActivationCode (string? encodedActivationCode);
[<Android.Runtime.Register("forActivationCode", "(Ljava/lang/String;)Landroid/telephony/euicc/DownloadableSubscription;", "", ApiSince=28)>]
static member ForActivationCode : string -> Android.Telephony.Euicc.DownloadableSubscription

Parameters

encodedActivationCode
String

the activation code to use. An activation code can be parsed from a user scanned QR code. The format of activation code is defined in SGP.22. For example, "1$SMDP.GSMA.COM$04386-AGYFT-A74Y8-3F815$1.3.6.1.4.1.31746". For detail, see com.android.euicc.data.ActivationCode. Must not be null.

Returns

the DownloadableSubscription which may be passed to EuiccManager#downloadSubscription.

Attributes

Remarks

Create a DownloadableSubscription for the given activation code.

This fills the encodedActivationCode field. Other fields like confirmationCode, carrierName and accessRules may be filled in the implementation of android.service.euicc.EuiccService if exists.

Java documentation for android.telephony.euicc.DownloadableSubscription.forActivationCode(java.lang.String).

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