Added in API level 31

Builder

class Builder
kotlin.Any
   ↳ android.telephony.euicc.DownloadableSubscription.Builder

Summary

Public constructors
Builder(baseSubscription: DownloadableSubscription)

Builder(encodedActivationCode: String)

Public methods
DownloadableSubscription

Builds a DownloadableSubscription object.

DownloadableSubscription.Builder

Sets the confirmation code.

DownloadableSubscription.Builder

Sets the encoded activation code.

Public constructors

Builder

Added in API level 31
Builder(baseSubscription: DownloadableSubscription)
Parameters
baseSubscription DownloadableSubscription: This value cannot be null.

Builder

Added in API level 31
Builder(encodedActivationCode: String)
Parameters
encodedActivationCode String: This value cannot be null.

Public methods

build

Added in API level 31
fun build(): DownloadableSubscription

Builds a DownloadableSubscription object.

Return
DownloadableSubscription a non-null DownloadableSubscription object.

setConfirmationCode

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

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

setEncodedActivationCode

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

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