Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
Summary
Public constructors
Builder
Builder(encodedActivationCode: String)
Parameters |
encodedActivationCode |
String: This value cannot be null . |
Public methods
setConfirmationCode
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 . |
setEncodedActivationCode
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. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# DownloadableSubscription.Builder\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/telephony/euicc/DownloadableSubscription.Builder \"View this page in Java\") \n\n```\nclass Builder\n```\n\n|---|---------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.telephony.euicc.DownloadableSubscription.Builder](#) |\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [Builder](#Builder(android.telephony.euicc.DownloadableSubscription))`(`baseSubscription:` `[DownloadableSubscription](/reference/kotlin/android/telephony/euicc/DownloadableSubscription)`)` \u003cbr /\u003e |\n| [Builder](#Builder(kotlin.String))`(`encodedActivationCode:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` \u003cbr /\u003e |\n\n| Public methods ||\n|------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [DownloadableSubscription](/reference/kotlin/android/telephony/euicc/DownloadableSubscription) | [build](#build())`()` Builds a [DownloadableSubscription](/reference/kotlin/android/telephony/euicc/DownloadableSubscription) object. |\n| [DownloadableSubscription.Builder](#) | [setConfirmationCode](#setConfirmationCode(kotlin.String))`(`value:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Sets the confirmation code. |\n| [DownloadableSubscription.Builder](#) | [setEncodedActivationCode](#setEncodedActivationCode(kotlin.String))`(`value:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Sets the encoded activation code. |\n\nPublic constructors\n-------------------\n\n### Builder\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nBuilder(baseSubscription: DownloadableSubscription)\n```\n\n| Parameters ||\n|--------------------|------------------------------------------------------------------------------------------------------------------------------|\n| `baseSubscription` | [DownloadableSubscription](/reference/kotlin/android/telephony/euicc/DownloadableSubscription): This value cannot be `null`. |\n\n### Builder\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nBuilder(encodedActivationCode: String)\n```\n\n| Parameters ||\n|-------------------------|----------------------------------------------------------------------------------------------------------------|\n| `encodedActivationCode` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): This value cannot be `null`. |\n\nPublic methods\n--------------\n\n### build\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun build(): DownloadableSubscription\n```\n\nBuilds a [DownloadableSubscription](/reference/kotlin/android/telephony/euicc/DownloadableSubscription) object.\n\n| Return ||\n|------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|\n| [DownloadableSubscription](/reference/kotlin/android/telephony/euicc/DownloadableSubscription) | a non-null [DownloadableSubscription](/reference/kotlin/android/telephony/euicc/DownloadableSubscription) object. |\n\n### setConfirmationCode\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setConfirmationCode(value: String): DownloadableSubscription.Builder\n```\n\nSets the confirmation code.\n\n| Parameters ||\n|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `value` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): the confirmation code to use to authenticate the carrier server got subscription download. This value cannot be `null`. |\n\n| Return ||\n|---------------------------------------|------------------------------|\n| [DownloadableSubscription.Builder](#) | This value cannot be `null`. |\n\n### setEncodedActivationCode\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setEncodedActivationCode(value: String): DownloadableSubscription.Builder\n```\n\nSets the encoded activation code.\n\n| Parameters ||\n|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `value` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): 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. |\n\n| Return ||\n|---------------------------------------|------------------------------|\n| [DownloadableSubscription.Builder](#) | This value cannot be `null`. |"]]