Stay organized with collections
Save and categorize content based on your preferences.
TrimOption
class TrimOption
Options for the trim() method
Summary
Enum values |
Trim leading and trailing spans.
|
Trim leading spans.
|
Trim trailing spans.
|
Enum values
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,["# UnicodeSetSpanner.TrimOption\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nTrimOption\n==========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/icu/text/UnicodeSetSpanner.TrimOption \"View this page in Java\") \n\n```\nclass TrimOption\n```\n\n|---|---|----------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\\\u003c[android.icu.text.UnicodeSetSpanner.TrimOption](#)\\\u003e ||\n| | ↳ | [android.icu.text.UnicodeSetSpanner.TrimOption](#) |\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [UnicodeSetSpanner.TrimOption.BOTH](#ENUM_VALUE:BOTH), [UnicodeSetSpanner.TrimOption.LEADING](#ENUM_VALUE:LEADING), [UnicodeSetSpanner.TrimOption.TRAILING](#ENUM_VALUE:TRAILING) |---------------------------------------------------------------|----------------------------------| | [UnicodeSetSpanner.TrimOption.BOTH](#ENUM_VALUE:BOTH) | Trim leading and trailing spans. | | [UnicodeSetSpanner.TrimOption.LEADING](#ENUM_VALUE:LEADING) | Trim leading spans. | | [UnicodeSetSpanner.TrimOption.TRAILING](#ENUM_VALUE:TRAILING) | Trim trailing spans. | |\n\nOptions for the trim() method\n\nSummary\n-------\n\n| Enum values ||\n|-----------------------------------------------------------|---|\n| [BOTH](#ENUM_VALUE:BOTH) Trim leading and trailing spans. |\n| [LEADING](#ENUM_VALUE:LEADING) Trim leading spans. |\n| [TRAILING](#ENUM_VALUE:TRAILING) Trim trailing spans. |\n\nEnum values\n-----------\n\n### BOTH\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val BOTH : UnicodeSetSpanner.TrimOption\n```\n\nTrim leading and trailing spans. \n\n### LEADING\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val LEADING : UnicodeSetSpanner.TrimOption\n```\n\nTrim leading spans. \n\n### TRAILING\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val TRAILING : UnicodeSetSpanner.TrimOption\n```\n\nTrim trailing spans."]]