Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
Builder for constructing LoadParams
.
Summary
Public constructors |
Constructor for builder to create LoadParams .
|
Public constructors
Builder
Builder()
Constructor for builder to create LoadParams
.
Public methods
setPassword
fun setPassword(password: String?): LoadParams.Builder
Sets the optional password for a protected PDF document. A null
value will be treated as no password supplied or document is unprotected.
Parameters |
password |
String?: Password for the protected PDF document. This value may 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,["# LoadParams.Builder\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [S Extensions 13](https://developer.android.com/sdkExtensions)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/graphics/pdf/LoadParams.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.graphics.pdf.LoadParams.Builder](#) |\n\nBuilder for constructing [LoadParams](/reference/kotlin/android/graphics/pdf/LoadParams).\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------|---|\n| [Builder](#Builder())`()` Constructor for builder to create [LoadParams](/reference/kotlin/android/graphics/pdf/LoadParams). |\n\n| Public methods ||\n|-----------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [LoadParams](/reference/kotlin/android/graphics/pdf/LoadParams) | [build](#build())`()` Builds the [LoadParams](/reference/kotlin/android/graphics/pdf/LoadParams) after the optional values has been set. |\n| [LoadParams.Builder](#) | [setPassword](#setPassword(kotlin.String))`(`password:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?`)` Sets the optional password for a protected PDF document. |\n\nPublic constructors\n-------------------\n\n### Builder\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [S Extensions 13](https://developer.android.com/sdkExtensions) \n\n```\nBuilder()\n```\n\nConstructor for builder to create [LoadParams](/reference/kotlin/android/graphics/pdf/LoadParams).\n\nPublic methods\n--------------\n\n### build\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [S Extensions 13](https://developer.android.com/sdkExtensions) \n\n```\nfun build(): LoadParams\n```\n\nBuilds the [LoadParams](/reference/kotlin/android/graphics/pdf/LoadParams) after the optional values has been set.\n\n| Return ||\n|-----------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|\n| [LoadParams](/reference/kotlin/android/graphics/pdf/LoadParams) | new instance of [LoadParams](/reference/kotlin/android/graphics/pdf/LoadParams) This value cannot be `null`. |\n\n### setPassword\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nAlso in [S Extensions 13](https://developer.android.com/sdkExtensions) \n\n```\nfun setPassword(password: String?): LoadParams.Builder\n```\n\nSets the optional password for a protected PDF document. A `null` value will be treated as no password supplied or document is unprotected.\n\n| Parameters ||\n|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `password` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?: Password for the protected PDF document. This value may be `null`. |"]]