Added in API level 37

Builder


class Builder
kotlin.Any
   ↳ android.view.accessibility.AccessibilityNodeInfo.ExtraRenderingInfo.Builder

The builder for ExtraRenderingInfo.

Summary

Public constructors

Creates a new Builder.

Creates a new Builder that is initialized from an ExtraRenderingInfo.

Public methods
AccessibilityNodeInfo.ExtraRenderingInfo

Creates a new ExtraRenderingInfo instance.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Clears the opacity of the node.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Clears the background color of the node.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Clears the current color selected to paint the hint text.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Clears the layout width and layout height of the view.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Clears the current color selected to paint the link text.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Clears the current color selected for primary text.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Clears the text size of the view.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Clears the text size unit of the view.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder
setAlpha(alpha: Float)

Sets the opacity of the node.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Sets the background color of the node.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Sets the current color selected to paint the hint text.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder
setLayoutSize(width: Int, height: Int)

Sets layout width and layout height of the view.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Sets the current color selected to paint the link text.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder
setTextColor(color: Int)

Sets the current color selected for primary text.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder
setTextSizeInPx(textSizeInPx: Float)

Sets text size of the view.

AccessibilityNodeInfo.ExtraRenderingInfo.Builder
setTextSizeUnit(textSizeUnit: Int)

Sets text size unit of the view.

Public constructors

Builder

Added in API level 37
Builder()

Creates a new Builder.

Builder

Added in API level 37
Builder(info: AccessibilityNodeInfo.ExtraRenderingInfo)

Creates a new Builder that is initialized from an ExtraRenderingInfo.

Parameters
info AccessibilityNodeInfo.ExtraRenderingInfo: an instance from which to initialize the builder.
This value cannot be null.

Public methods

build

Added in API level 37
fun build(): AccessibilityNodeInfo.ExtraRenderingInfo

Creates a new ExtraRenderingInfo instance.

Return
AccessibilityNodeInfo.ExtraRenderingInfo This value cannot be null.

clearAlpha

Added in API level 37
fun clearAlpha(): AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Clears the opacity of the node.

Return
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

clearBackgroundColor

Added in API level 37
fun clearBackgroundColor(): AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Clears the background color of the node.

Return
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

clearHintTextColor

Added in API level 37
fun clearHintTextColor(): AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Clears the current color selected to paint the hint text.

Return
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

clearLayoutSize

Added in API level 37
fun clearLayoutSize(): AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Clears the layout width and layout height of the view.

Return
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

clearLinkTextColor

Added in API level 37
fun clearLinkTextColor(): AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Clears the current color selected to paint the link text.

Return
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

clearTextColor

Added in API level 37
fun clearTextColor(): AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Clears the current color selected for primary text.

Return
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

clearTextSizeInPx

Added in API level 37
fun clearTextSizeInPx(): AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Clears the text size of the view.

Return
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

clearTextSizeUnit

Added in API level 37
fun clearTextSizeUnit(): AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Clears the text size unit of the view.

Return
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

setAlpha

Added in API level 37
fun setAlpha(alpha: Float): AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Sets the opacity of the node.

Parameters
alpha Float: The node opacity.
Value is between 0.0f and 1.0f inclusive
Return
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

setBackgroundColor

Added in API level 37
fun setBackgroundColor(color: Int): AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Sets the background color of the node.

Parameters
color Int: The background color.
Return
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

setHintTextColor

Added in API level 37
fun setHintTextColor(color: Int): AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Sets the current color selected to paint the hint text.

Parameters
color Int: The current hint text color.
Return
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

setLayoutSize

Added in API level 37
fun setLayoutSize(
    width: Int,
    height: Int
): AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Sets layout width and layout height of the view.

Parameters
width Int: The layout width.
height Int: The layout height.
Return
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

setLinkTextColor

Added in API level 37
fun setLinkTextColor(color: Int): AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Sets the current color selected to paint the link text.

Parameters
color Int: The current link text color.
Return
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

setTextColor

Added in API level 37
fun setTextColor(color: Int): AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Sets the current color selected for primary text.

Parameters
color Int: The current text color.
Return
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

setTextSizeInPx

Added in API level 37
fun setTextSizeInPx(textSizeInPx: Float): AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Sets text size of the view.

Parameters
textSizeInPx Float: The text size in pixels.
Return
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.

setTextSizeUnit

Added in API level 37
fun setTextSizeUnit(textSizeUnit: Int): AccessibilityNodeInfo.ExtraRenderingInfo.Builder

Sets text size unit of the view.

Parameters
textSizeUnit Int: The text size unit.
Return
AccessibilityNodeInfo.ExtraRenderingInfo.Builder This builder.
This value cannot be null.