Builder


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

Builder used to create a RecentViewHint.

Summary

Public constructors

Creates an instance of Builder.

Public methods
RecentViewHint.Builder

Adds a CapturedText object containing information about a single captured UI text element.

RecentViewHint

RecentViewHint.Builder
setLocusId(locusId: String?)

Sets the locus ID for the hint.

RecentViewHint.Builder
setSourceAppActivityComponentName(sourceAppActivityComponentName: ComponentName)

Sets the component name of the source app activity associated with the hint.

Public constructors

Builder

Builder()

Creates an instance of Builder.

Public methods

addCapturedText

fun addCapturedText(capturedText: CapturedText): RecentViewHint.Builder

Adds a CapturedText object containing information about a single captured UI text element.

Parameters
capturedText CapturedText: This value cannot be null.
Return
RecentViewHint.Builder This value cannot be null.

build

fun build(): RecentViewHint
Return
RecentViewHint the built RecentViewHint.
This value cannot be null.

setLocusId

fun setLocusId(locusId: String?): RecentViewHint.Builder

Sets the locus ID for the hint.

Parameters
locusId String?: This value may be null.
Return
RecentViewHint.Builder This value cannot be null.

setSourceAppActivityComponentName

fun setSourceAppActivityComponentName(sourceAppActivityComponentName: ComponentName): RecentViewHint.Builder

Sets the component name of the source app activity associated with the hint.

Parameters
sourceAppActivityComponentName ComponentName: This value cannot be null.
Return
RecentViewHint.Builder This value cannot be null.