Builder
class Builder
| kotlin.Any | |
| ↳ | android.view.accessibility.AccessibilityNodeInfo.ExtraRenderingInfo.Builder |
The builder for ExtraRenderingInfo.
Summary
| Public constructors | |
|---|---|
Builder()Creates a new Builder. |
|
|
Creates a new Builder that is initialized from an |
|
Public constructors
Builder
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
fun build(): AccessibilityNodeInfo.ExtraRenderingInfo
Creates a new ExtraRenderingInfo instance.
| Return | |
|---|---|
AccessibilityNodeInfo.ExtraRenderingInfo |
This value cannot be null. |
clearAlpha
fun clearAlpha(): AccessibilityNodeInfo.ExtraRenderingInfo.Builder
Clears the opacity of the node.
| Return | |
|---|---|
AccessibilityNodeInfo.ExtraRenderingInfo.Builder |
This builder. This value cannot be null. |
clearBackgroundColor
fun clearBackgroundColor(): AccessibilityNodeInfo.ExtraRenderingInfo.Builder
Clears the background color of the node.
| Return | |
|---|---|
AccessibilityNodeInfo.ExtraRenderingInfo.Builder |
This builder. This value cannot be null. |
clearHintTextColor
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
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
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
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
fun clearTextSizeInPx(): AccessibilityNodeInfo.ExtraRenderingInfo.Builder
Clears the text size of the view.
| Return | |
|---|---|
AccessibilityNodeInfo.ExtraRenderingInfo.Builder |
This builder. This value cannot be null. |
clearTextSizeUnit
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
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
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
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
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
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
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
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
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. |