RecentViewHint.Builder


public static final class RecentViewHint.Builder
extends Object

java.lang.Object
   ↳ android.app.personalcontext.hint.RecentViewHint.Builder


Builder used to create a RecentViewHint.

Summary

Public constructors

Builder()

Creates an instance of Builder.

Public methods

RecentViewHint.Builder addCapturedText(CapturedText capturedText)

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

RecentViewHint build()
RecentViewHint.Builder setLocusId(String locusId)

Sets the locus ID for the hint.

RecentViewHint.Builder setSourceAppActivityComponentName(ComponentName sourceAppActivityComponentName)

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

Inherited methods

Public constructors

Builder

Added in version 37.2
public Builder ()

Creates an instance of Builder.

Public methods

addCapturedText

Added in version 37.2
public RecentViewHint.Builder addCapturedText (CapturedText capturedText)

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

Parameters
capturedText CapturedText: This value cannot be null.

Returns
RecentViewHint.Builder This value cannot be null.

build

Added in version 37.2
public RecentViewHint build ()

Returns
RecentViewHint the built RecentViewHint.
This value cannot be null.

setLocusId

Added in version 37.2
public RecentViewHint.Builder setLocusId (String locusId)

Sets the locus ID for the hint.

Parameters
locusId String: This value may be null.

Returns
RecentViewHint.Builder This value cannot be null.

setSourceAppActivityComponentName

Added in version 37.2
public RecentViewHint.Builder setSourceAppActivityComponentName (ComponentName sourceAppActivityComponentName)

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

Parameters
sourceAppActivityComponentName ComponentName: This value cannot be null.

Returns
RecentViewHint.Builder This value cannot be null.