IMPORTANT: In July 2025, we stopped releasing new versions of KTX modules, and we removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the previously released KTX modules, we recommend that you
migrate your app to use KTX APIs from the main modules instead . For details, see the
FAQ about this initiative .
Send feedback
Stay organized with collections
Save and categorize content based on your preferences.
public final class StringFormat.Custom extends StringFormat
Summary
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-21 UTC.
Need to tell us more?
[[["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-07-21 UTC."],[],[],null,["# StringFormat.Custom\n===================\n\n\n```\npublic final class StringFormat.Custom extends StringFormat\n```\n\n\u003cbr /\u003e\n\n|---|---|----------------------------------------------------------------------------------------------------------------------------|\n| [java.lang.Object](https://developer.android.com/reference/kotlin/java/lang/Object.html) |||\n| ↳ | [com.google.firebase.ai.type.StringFormat](/docs/reference/android/com/google/firebase/ai/type/StringFormat) ||\n| | ↳ | [com.google.firebase.ai.type.StringFormat.Custom](/docs/reference/android/com/google/firebase/ai/type/StringFormat.Custom) |\n\n*** ** * ** ***\n\nSummary\n-------\n\n| ### Public constructors |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Custom](/docs/reference/android/com/google/firebase/ai/type/StringFormat.Custom#Custom(kotlin.String))`(@`[NonNull](https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html)` `[String](https://developer.android.com/reference/kotlin/java/lang/String.html)` value)` |\n\nPublic constructors\n-------------------\n\n### Custom\n\n```\npublic Custom(@NonNull String value)\n```"]]