DownloadableSubscription.Builder

public static final class DownloadableSubscription.Builder
extends Object

java.lang.Object
   ↳ android.telephony.euicc.DownloadableSubscription.Builder


Summary

Public constructors

Builder(DownloadableSubscription baseSubscription)
Builder(String encodedActivationCode)

Public methods

DownloadableSubscription build()

Builds a DownloadableSubscription object.

DownloadableSubscription.Builder setConfirmationCode(String value)

Sets the confirmation code.

DownloadableSubscription.Builder setEncodedActivationCode(String value)

Sets the encoded activation code.

Inherited methods

Public constructors

Builder

Added in API level 31
public Builder (DownloadableSubscription baseSubscription)

Parameters
baseSubscription DownloadableSubscription: This value cannot be null.

Builder

Added in API level 31
public Builder (String encodedActivationCode)

Parameters
encodedActivationCode String: This value cannot be null.

Public methods

build

Added in API level 31
public DownloadableSubscription build ()

Builds a DownloadableSubscription object.

Returns
DownloadableSubscription a non-null DownloadableSubscription object.

setConfirmationCode

Added in API level 31
public DownloadableSubscription.Builder setConfirmationCode (String value)

Sets the confirmation code.

Parameters
value String: the confirmation code to use to authenticate the carrier server got subscription download. This value cannot be null.

Returns
DownloadableSubscription.Builder This value cannot be null.

setEncodedActivationCode

Added in API level 31
public DownloadableSubscription.Builder setEncodedActivationCode (String value)

Sets the encoded activation code.

Parameters
value 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
DownloadableSubscription.Builder This value cannot be null.