Stay organized with collections
Save and categorize content based on your preferences.
class LayoutElementBuilders.ArcText.Builder
Builder for ArcText
.
Summary
Public constructors |
Creates an instance of Builder .
|
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-05-15 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-05-15 UTC."],[],[],null,["# LayoutElementBuilders.ArcText.Builder\n=====================================\n\nArtifact: [androidx.wear.protolayout:protolayout](/jetpack/androidx/releases/wear-protolayout) \n[View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/LayoutElementBuilders.java+class:androidx.wear.protolayout.LayoutElementBuilders.ArcText.Builder) \nAdded in [1.0.0](/jetpack/androidx/releases/wear-protolayout#1.0.0)\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/wear/protolayout/LayoutElementBuilders.ArcText.Builder \"View this page in Java\")\n\n\n```\nclass LayoutElementBuilders.ArcText.Builder\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nBuilder for [ArcText](/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcText).\n\nSummary\n-------\n\n| ### Public constructors |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Builder](/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcText.Builder#Builder())`()` Creates an instance of [Builder](/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcText.Builder). |\n\n| ### Public functions |\n|----------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [LayoutElementBuilders.ArcText](/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcText) | [build](/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcText.Builder#build())`()` Builds an instance from accumulated values. |\n| [LayoutElementBuilders.ArcText.Builder](/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcText.Builder) | `@`[RequiresSchemaVersion](/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 300)` [setArcDirection](/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcText.Builder#setArcDirection(int))`(arcDirection: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets the direction in which this text is drawn. |\n| [LayoutElementBuilders.ArcText.Builder](/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcText.Builder) | `@`[RequiresSchemaVersion](/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 300)` [setArcDirection](/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcText.Builder#setArcDirection(androidx.wear.protolayout.LayoutElementBuilders.ArcDirectionProp))`(arcDirection: `[LayoutElementBuilders.ArcDirectionProp](/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcDirectionProp)`)` Sets the direction in which this text is drawn. |\n| [LayoutElementBuilders.ArcText.Builder](/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcText.Builder) | `@`[RequiresSchemaVersion](/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` [setFontStyle](/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcText.Builder#setFontStyle(androidx.wear.protolayout.LayoutElementBuilders.FontStyle))`(fontStyle: `[LayoutElementBuilders.FontStyle](/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.FontStyle)`)` Sets the style of font to use (size, bold etc). |\n| [LayoutElementBuilders.ArcText.Builder](/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcText.Builder) | `@`[RequiresSchemaVersion](/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` [setModifiers](/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcText.Builder#setModifiers(androidx.wear.protolayout.ModifiersBuilders.ArcModifiers))`(modifiers: `[ModifiersBuilders.ArcModifiers](/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.ArcModifiers)`)` Sets [androidx.wear.protolayout.ModifiersBuilders.Modifiers](/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Modifiers) for this element. |\n| [LayoutElementBuilders.ArcText.Builder](/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcText.Builder) | [setText](/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcText.Builder#setText(java.lang.String))`(text: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`)` Sets the text to render. |\n| [LayoutElementBuilders.ArcText.Builder](/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcText.Builder) | `@`[RequiresSchemaVersion](/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` [setText](/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcText.Builder#setText(androidx.wear.protolayout.TypeBuilders.StringProp))`(text: `[TypeBuilders.StringProp](/reference/kotlin/androidx/wear/protolayout/TypeBuilders.StringProp)`)` Sets the text to render. |\n\nPublic constructors\n-------------------\n\n### Builder\n\nAdded in [1.0.0](/jetpack/androidx/releases/wear-protolayout#1.0.0) \n\n```\nBuilder()\n```\n\nCreates an instance of [Builder](/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcText.Builder). \n\nPublic functions\n----------------\n\n### build\n\nAdded in [1.0.0](/jetpack/androidx/releases/wear-protolayout#1.0.0) \n\n```\nfun build(): LayoutElementBuilders.ArcText\n```\n\nBuilds an instance from accumulated values. \n\n### setArcDirection\n\nAdded in [1.2.0](/jetpack/androidx/releases/wear-protolayout#1.2.0) \n\n```\n@RequiresSchemaVersion(major = 1, minor = 300)\nfun setArcDirection(arcDirection: Int): LayoutElementBuilders.ArcText.Builder\n```\n\nSets the direction in which this text is drawn. If not set, defaults to ARC_DIRECTION_CLOCKWISE. \n\n### setArcDirection\n\nAdded in [1.2.0](/jetpack/androidx/releases/wear-protolayout#1.2.0) \n\n```\n@RequiresSchemaVersion(major = 1, minor = 300)\nfun setArcDirection(arcDirection: LayoutElementBuilders.ArcDirectionProp): LayoutElementBuilders.ArcText.Builder\n```\n\nSets the direction in which this text is drawn. If not set, defaults to ARC_DIRECTION_CLOCKWISE. \n\n### setFontStyle\n\nAdded in [1.0.0](/jetpack/androidx/releases/wear-protolayout#1.0.0) \n\n```\n@RequiresSchemaVersion(major = 1, minor = 0)\nfun setFontStyle(fontStyle: LayoutElementBuilders.FontStyle): LayoutElementBuilders.ArcText.Builder\n```\n\nSets the style of font to use (size, bold etc). If not specified, defaults to the platform's default body font. \n\n### setModifiers\n\nAdded in [1.0.0](/jetpack/androidx/releases/wear-protolayout#1.0.0) \n\n```\n@RequiresSchemaVersion(major = 1, minor = 0)\nfun setModifiers(modifiers: ModifiersBuilders.ArcModifiers): LayoutElementBuilders.ArcText.Builder\n```\n\nSets [androidx.wear.protolayout.ModifiersBuilders.Modifiers](/reference/kotlin/androidx/wear/protolayout/ModifiersBuilders.Modifiers) for this element. \n\n### setText\n\nAdded in [1.0.0](/jetpack/androidx/releases/wear-protolayout#1.0.0) \n\n```\nfun setText(text: String): LayoutElementBuilders.ArcText.Builder\n```\n\nSets the text to render. \n\n### setText\n\nAdded in [1.0.0](/jetpack/androidx/releases/wear-protolayout#1.0.0) \n\n```\n@RequiresSchemaVersion(major = 1, minor = 0)\nfun setText(text: TypeBuilders.StringProp): LayoutElementBuilders.ArcText.Builder\n```\n\nSets the text to render.\n\nNote that this field only supports static values."]]