DownloadableSubscription.ForActivationCode(String) 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.
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.
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.