Stay organized with collections
Save and categorize content based on your preferences.
ValueSanitizer
interface ValueSanitizer
A functor used to sanitize a single query value.
Summary
Public methods |
abstract String! |
Sanitize an unencoded value.
|
Public methods
sanitize
abstract fun sanitize(value: String!): String!
Sanitize an unencoded value.
Return |
String! |
the sanitized unencoded value |
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,["# UrlQuerySanitizer.ValueSanitizer\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nValueSanitizer\n==============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/net/UrlQuerySanitizer.ValueSanitizer \"View this page in Java\") \n\n```\ninterface ValueSanitizer\n```\n\n|---------------------------------------------------|\n| [android.net.UrlQuerySanitizer.ValueSanitizer](#) |\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [UrlQuerySanitizer.IllegalCharacterValueSanitizer](/reference/kotlin/android/net/UrlQuerySanitizer.IllegalCharacterValueSanitizer) |------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------| | [UrlQuerySanitizer.IllegalCharacterValueSanitizer](/reference/kotlin/android/net/UrlQuerySanitizer.IllegalCharacterValueSanitizer) | Sanitize values based on which characters they contain. | |\n\nA functor used to sanitize a single query value.\n\nSummary\n-------\n\n| Public methods ||\n|--------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [sanitize](#sanitize(kotlin.String))`(`value:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Sanitize an unencoded value. |\n\nPublic methods\n--------------\n\n### sanitize\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun sanitize(value: String!): String!\n```\n\nSanitize an unencoded value.\n\n| Parameters ||\n|---------|------------------------------------------------------------------------------------|\n| `value` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: |\n\n| Return ||\n|-----------------------------------------------------------------------------------|-------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | the sanitized unencoded value |"]]