Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# ExtraRenderingInfo

*** ** * ** ***

```
class ExtraRenderingInfo : Parcelable
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [android.view.accessibility.AccessibilityNodeInfo.ExtraRenderingInfo](https://developer.android.com/reference/kotlin/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo#) |

Class with information of a view useful to evaluate accessibility needs. Developers can refresh the node with the key `https://developer.android.com/reference/kotlin/android/view/accessibility/AccessibilityNodeInfo#EXTRA_DATA_RENDERING_INFO_KEY:kotlin.String` to fetch this information if it is available for this node.

## Summary

| Nested classes ||
|---|---|
|   | `https://developer.android.com/reference/kotlin/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo.Builder` The builder for ExtraRenderingInfo. |

Inherited constants From class `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR:kotlin.Int`


Descriptor bit used with `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#describeContents()`: indicates that the Parcelable object's flattened representation includes a file descriptor.

<br />

`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE:kotlin.Int`


Flag for use with `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#writeToParcel(android.os.Parcel,%20kotlin.Int)`: the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`". Some implementations may want to release resources at this point.

<br />

| Public methods ||
|---|---|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo#describeContents()()` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) | `https://developer.android.com/reference/kotlin/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo#getAlpha()()` Returns the opacity of the node if it is available, otherwise -1. |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo#getBackgroundColor()()` Returns the background color of the node if it is a single color. |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo#getHintTextColor()()` Returns the current color selected to paint the hint text if the node has hint text. |
| [Size](https://developer.android.com/reference/kotlin/android/util/Size.html#)? | `https://developer.android.com/reference/kotlin/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo#getLayoutSize()()` Gets the size object containing the height and the width of `https://developer.android.com/reference/kotlin/android/view/ViewGroup.LayoutParams.html#` if the node is a `https://developer.android.com/reference/kotlin/android/view/ViewGroup.html#` or a `https://developer.android.com/reference/kotlin/android/widget/TextView.html#`, or null otherwise. |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo#getLinkTextColor()()` Returns the current color selected to paint the link text if the node has link text. |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo#getTextColor()()` Returns the current color selected for primary text if the node has visible text. |
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) | `https://developer.android.com/reference/kotlin/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo#getTextSizeInPx()()` Gets the text size if the node is a `https://developer.android.com/reference/kotlin/android/widget/TextView.html#`, or -1 otherwise. |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo#getTextSizeUnit()()` Gets the text size unit if the node is a `https://developer.android.com/reference/kotlin/android/widget/TextView.html#`, or -1 otherwise. |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `https://developer.android.com/reference/kotlin/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo#writeToParcel(android.os.Parcel,%20kotlin.Int)(parcel: https://developer.android.com/reference/kotlin/android/os/Parcel.html#, flags: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Flatten this object in to a Parcel. |

| Properties ||
|---|---|
| static [Parcelable.Creator](https://developer.android.com/reference/kotlin/android/os/Parcelable.Creator.html#)\<[AccessibilityNodeInfo.ExtraRenderingInfo](https://developer.android.com/reference/kotlin/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo#)!\> | `https://developer.android.com/reference/kotlin/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo#CREATOR:android.os.Parcelable.Creator` <br /> |

## Public methods

### describeContents

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun describeContents(): Int
```

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#writeToParcel(android.os.Parcel,%20kotlin.Int)`, the return value of this method must include the `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR:kotlin.Int` bit.

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or - `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR:kotlin.Int` |

### getAlpha

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getAlpha(): Float
```

Returns the opacity of the node if it is available, otherwise -1.0f.
**See Also**

- `https://developer.android.com/reference/kotlin/android/view/View.html#getAlpha()`

### getBackgroundColor

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getBackgroundColor(): Int
```

Returns the background color of the node if it is a single color. If the color has not been set or is unavailable, zero (equivalent to `https://developer.android.com/reference/kotlin/android/graphics/Color.html#TRANSPARENT:kotlin.Int`) will be returned.
**See Also**

- `https://developer.android.com/reference/kotlin/android/view/View.html#getBackground()`

### getHintTextColor

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getHintTextColor(): Int
```

Returns the current color selected to paint the hint text if the node has hint text. If the color has not been set or is unavailable, zero (equivalent to `https://developer.android.com/reference/kotlin/android/graphics/Color.html#TRANSPARENT:kotlin.Int`) will be returned.
**See Also**

- `https://developer.android.com/reference/kotlin/android/widget/TextView.html#getCurrentHintTextColor()`

### getLayoutSize

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getLayoutSize(): Size?
```

Gets the size object containing the height and the width of `https://developer.android.com/reference/kotlin/android/view/ViewGroup.LayoutParams.html#` if the node is a `https://developer.android.com/reference/kotlin/android/view/ViewGroup.html#` or a `https://developer.android.com/reference/kotlin/android/widget/TextView.html#`, or null otherwise. Useful for some accessibility services to understand whether the text is scalable and fits the view or not.

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/util/Size.html#?` | a `https://developer.android.com/reference/kotlin/android/util/Size.html#` stores layout height and layout width of the view, or null otherwise. And the size value may be in pixels, `https://developer.android.com/reference/kotlin/android/view/ViewGroup.LayoutParams.html#MATCH_PARENT:kotlin.Int`, or `https://developer.android.com/reference/kotlin/android/view/ViewGroup.LayoutParams.html#WRAP_CONTENT:kotlin.Int` |

### getLinkTextColor

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getLinkTextColor(): Int
```

Returns the current color selected to paint the link text if the node has link text. If the color has not been set or is unavailable, zero (equivalent to `https://developer.android.com/reference/kotlin/android/graphics/Color.html#TRANSPARENT:kotlin.Int`) will be returned.
**See Also**

- `https://developer.android.com/reference/kotlin/android/widget/TextView.html#getLinkTextColors()`

### getTextColor

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getTextColor(): Int
```

Returns the current color selected for primary text if the node has visible text. If the color has not been set or is unavailable, zero (equivalent to `https://developer.android.com/reference/kotlin/android/graphics/Color.html#TRANSPARENT:kotlin.Int`) will be returned.
**See Also**

- `https://developer.android.com/reference/kotlin/android/widget/TextView.html#getCurrentTextColor()`

### getTextSizeInPx

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getTextSizeInPx(): Float
```

Gets the text size if the node is a `https://developer.android.com/reference/kotlin/android/widget/TextView.html#`, or -1 otherwise. Useful for some accessibility services to understand whether the text is scalable and fits the view or not.

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html` | the text size of a `TextView`, or -1 otherwise. |

### getTextSizeUnit

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getTextSizeUnit(): Int
```

Gets the text size unit if the node is a `https://developer.android.com/reference/kotlin/android/widget/TextView.html#`, or -1 otherwise. Text size returned from `https://developer.android.com/reference/kotlin/android/view/accessibility/AccessibilityNodeInfo.ExtraRenderingInfo#getTextSizeInPx()` in raw pixels may scale by factors and convert from other units. Useful for some accessibility services to understand whether the text is scalable and fits the view or not.

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | the text size unit which type is `https://developer.android.com/reference/kotlin/android/util/TypedValue.html#TYPE_DIMENSION:kotlin.Int` of a `TextView`, or -1 otherwise. |

**See Also**

- `https://developer.android.com/reference/kotlin/android/util/TypedValue.html#TYPE_DIMENSION:kotlin.Int`

### writeToParcel

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun writeToParcel(
    parcel: Parcel, 
    flags: Int
): Unit
```

Flatten this object in to a Parcel.

| Parameters ||
|---|---|
| `dest` | The Parcel in which the object should be written. This value cannot be `null`. |
| `flags` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): Additional flags about how the object should be written. May be 0 or `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE:kotlin.Int`. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/kotlin/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE:kotlin.Int` |
| `parcel` | [Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html#): This value cannot be `null`. |

## Properties

### CREATOR

Added in [API level 37](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
static val CREATOR: Parcelable.Creator<AccessibilityNodeInfo.ExtraRenderingInfo!>
```