Builder


class Builder
kotlin.Any
   ↳ android.app.personalcontext.hint.CapturedText.Builder

Builder for CapturedText.

Summary

Public constructors

Public methods
CapturedText

Returns the built CapturedText.

CapturedText.Builder
setResourceId(resourceId: String)

Sets the resource ID of the view.

CapturedText.Builder
setViewId(viewId: String)

Sets a unique identifier for the UI element.

CapturedText.Builder
setViewNodeBoundingBox(viewNodeBoundingBox: Rect)

Sets the screen relative bounding box of the text element, in pixels.

CapturedText.Builder
setViewNodeDescription(viewNodeDescription: String)

Sets the accessibility content description of the UI element.

CapturedText.Builder
setViewNodeText(viewNodeText: String)

Sets the actual text from the UI element.

Public constructors

Builder

Builder()

Public methods

build

fun build(): CapturedText

Returns the built CapturedText.

Return
CapturedText This value cannot be null.

setResourceId

fun setResourceId(resourceId: String): CapturedText.Builder

Sets the resource ID of the view.

Parameters
resourceId String: This value cannot be null.
Return
CapturedText.Builder This value cannot be null.

setViewId

fun setViewId(viewId: String): CapturedText.Builder

Sets a unique identifier for the UI element.

Parameters
viewId String: This value cannot be null.
Return
CapturedText.Builder This value cannot be null.

setViewNodeBoundingBox

fun setViewNodeBoundingBox(viewNodeBoundingBox: Rect): CapturedText.Builder

Sets the screen relative bounding box of the text element, in pixels.

Parameters
viewNodeBoundingBox Rect: This value cannot be null.
Return
CapturedText.Builder This value cannot be null.

setViewNodeDescription

fun setViewNodeDescription(viewNodeDescription: String): CapturedText.Builder

Sets the accessibility content description of the UI element.

Parameters
viewNodeDescription String: This value cannot be null.
Return
CapturedText.Builder This value cannot be null.

setViewNodeText

fun setViewNodeText(viewNodeText: String): CapturedText.Builder

Sets the actual text from the UI element.

Parameters
viewNodeText String: This value cannot be null.
Return
CapturedText.Builder This value cannot be null.