Added in API level 37.2
Builder
class Builder
| kotlin.Any | |
| ↳ | android.app.personalcontext.hint.RecentViewHint.Builder |
Builder used to create a RecentViewHint.
Summary
| Public constructors | |
|---|---|
Builder()Creates an instance of |
|
| Public methods | |
|---|---|
| RecentViewHint.Builder |
addCapturedText(capturedText: CapturedText)Adds a |
| RecentViewHint |
build() |
| 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
Public methods
addCapturedText
Added in API level 37.2
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
Added in API level 37.2
fun build(): RecentViewHint
| Return | |
|---|---|
RecentViewHint |
the built RecentViewHint. This value cannot be null. |
setLocusId
Added in API level 37.2
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
Added in API level 37.2
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. |