Stay organized with collections
Save and categorize content based on your preferences.
HtmlInfo
abstract class HtmlInfo
Simplified representation of the HTML properties of a node that represents an HTML element.
Summary
Nested classes |
abstract |
Builder for HtmlInfo objects.
|
Public constructors
Public methods
getTag
abstract fun getTag(): String
Gets the HTML tag.
Return |
String |
This value cannot 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,["# ViewStructure.HtmlInfo\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nHtmlInfo\n========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/view/ViewStructure.HtmlInfo \"View this page in Java\") \n\n```\nabstract class HtmlInfo\n```\n\n|---|------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.view.ViewStructure.HtmlInfo](#) |\n\nSimplified representation of the HTML properties of a node that represents an HTML element.\n\nSummary\n-------\n\n| Nested classes ||\n|----------|-------------------------------------------------------------------------------------------------------------|\n| abstract | [Builder](/reference/kotlin/android/view/ViewStructure.HtmlInfo.Builder) Builder for [HtmlInfo](#) objects. |\n\n| Public constructors ||\n|------------------------------------|---|\n| [HtmlInfo](#HtmlInfo())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------|\n| abstract [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\\\u003c[Pair](../util/Pair.html#)\\\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!, [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\\\u003e!\\\u003e? | [getAttributes](#getAttributes())`()` Gets the list of HTML attributes. |\n| abstract [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [getTag](#getTag())`()` Gets the HTML tag. |\n\nPublic constructors\n-------------------\n\n### HtmlInfo\n\n```\nHtmlInfo()\n```\n\nPublic methods\n--------------\n\n### getAttributes\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun getAttributes(): MutableList\u003cPair\u003cString!, String!\u003e!\u003e?\n```\n\nGets the list of HTML attributes.\n\n| Return ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------|\n| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\u003c[Pair](../util/Pair.html#)\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!,` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\u003e!\u003e? | list of key/value pairs; could contain pairs with the same keys. This value may be `null`. |\n\n### getTag\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun getTag(): String\n```\n\nGets the HTML tag.\n\n| Return ||\n|----------------------------------------------------------------------------------|------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | This value cannot be `null`. |"]]