Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# LocusIdRequest

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/android/view/contentcapture/DataRemovalRequest.LocusIdRequest "View this page in Java")

```
class LocusIdRequest
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [android.view.contentcapture.DataRemovalRequest.LocusIdRequest](https://developer.android.com/reference/kotlin/android/view/contentcapture/DataRemovalRequest.LocusIdRequest#) |

Representation of a request to remove data associated with a `https://developer.android.com/reference/kotlin/android/content/LocusId.html#`.

## Summary

| Public methods ||
|---|---|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/view/contentcapture/DataRemovalRequest.LocusIdRequest#getFlags()()` Gets the flags associates with request. |
| [LocusId](https://developer.android.com/reference/kotlin/android/content/LocusId.html#) | `https://developer.android.com/reference/kotlin/android/view/contentcapture/DataRemovalRequest.LocusIdRequest#getLocusId()()` Gets the `LocusId` per se. |

## Public methods

### getFlags

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getFlags(): Int
```

Gets the flags associates with request.

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | either `https://developer.android.com/reference/kotlin/android/view/contentcapture/DataRemovalRequest#FLAG_IS_PREFIX:kotlin.Int` or `0`. This value cannot be `null`. Value is either `0` or - `https://developer.android.com/reference/kotlin/android/view/contentcapture/DataRemovalRequest#FLAG_IS_PREFIX:kotlin.Int` |

### getLocusId

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun getLocusId(): LocusId
```

Gets the `LocusId` per se.

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/content/LocusId.html#` | This value cannot be `null`. |