Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
Builder for DataRemovalRequest
objects.
Summary
Public constructors
Public methods
forEverything
fun forEverything(): DataRemovalRequest.Builder
Requests servive to remove all content capture data associated with the app's package.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# DataRemovalRequest.Builder\n\nAdded in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/view/contentcapture/DataRemovalRequest.Builder \"View this page in Java\") \n\n```\nclass Builder\n```\n\n|---|-------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.view.contentcapture.DataRemovalRequest.Builder](#) |\n\nBuilder for [DataRemovalRequest](/reference/kotlin/android/view/contentcapture/DataRemovalRequest) objects.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------|---|\n| [Builder](#Builder())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [DataRemovalRequest.Builder](#) | [addLocusId](#addLocusId(android.content.LocusId,%20kotlin.Int))`(`locusId:` `[LocusId](../../content/LocusId.html#)`, `flags:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Request service to remove data associated with a given [LocusId](../../content/LocusId.html#). |\n| [DataRemovalRequest](/reference/kotlin/android/view/contentcapture/DataRemovalRequest) | [build](#build())`()` Builds the [DataRemovalRequest](/reference/kotlin/android/view/contentcapture/DataRemovalRequest). |\n| [DataRemovalRequest.Builder](#) | [forEverything](#forEverything())`()` Requests servive to remove all content capture data associated with the app's package. |\n\nPublic constructors\n-------------------\n\n### Builder\n\n```\nBuilder()\n```\n\nPublic methods\n--------------\n\n### addLocusId\n\nAdded in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun addLocusId(\n locusId: LocusId, \n flags: Int\n): DataRemovalRequest.Builder\n```\n\nRequest service to remove data associated with a given [LocusId](../../content/LocusId.html#).\n\n| Parameters ||\n|-----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `locusId` | [LocusId](../../content/LocusId.html#): the [LocusId](../../content/LocusId.html#) being requested to be removed. This value cannot be `null`. |\n| `flags` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): either [DataRemovalRequest.FLAG_IS_PREFIX](/reference/kotlin/android/view/contentcapture/DataRemovalRequest#FLAG_IS_PREFIX:kotlin.Int) or `0` Value is either `0` or [android.view.contentcapture.DataRemovalRequest#FLAG_IS_PREFIX](/reference/kotlin/android/view/contentcapture/DataRemovalRequest#FLAG_IS_PREFIX:kotlin.Int) |\n\n| Return ||\n|---------------------------------|-------------------------------------------|\n| [DataRemovalRequest.Builder](#) | this builder This value cannot be `null`. |\n\n### build\n\nAdded in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun build(): DataRemovalRequest\n```\n\nBuilds the [DataRemovalRequest](/reference/kotlin/android/view/contentcapture/DataRemovalRequest).\n\n| Return ||\n|----------------------------------------------------------------------------------------|------------------------------|\n| [DataRemovalRequest](/reference/kotlin/android/view/contentcapture/DataRemovalRequest) | This value cannot be `null`. |\n\n### forEverything\n\nAdded in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun forEverything(): DataRemovalRequest.Builder\n```\n\nRequests servive to remove all content capture data associated with the app's package.\n\n| Return ||\n|---------------------------------|-------------------------------------------|\n| [DataRemovalRequest.Builder](#) | this builder This value cannot be `null`. |"]]