Added in API level 29

DataRemovalRequest


class DataRemovalRequest : Parcelable
kotlin.Any
   ↳ android.view.contentcapture.DataRemovalRequest

Class used by apps to request the content capture service to remove data associated with LocusIds.

An app which has tagged data with a LocusId can therefore delete them later. This is intended to let apps propagate deletions of user data into the operating system.

Summary

Nested classes

Builder for DataRemovalRequest objects.

Representation of a request to remove data associated with a LocusId.

Constants
static Int

When set, service should use the LocusId#getId() as prefix for the data to be removed.

Inherited constants
Public methods
Int

MutableList<DataRemovalRequest.LocusIdRequest!>

Gets the list of LousIds the apps is requesting to remove.

String

Gets the name of the app that's making the request.

Boolean

Checks if app is requesting to remove content capture data associated with its package.

Unit
writeToParcel(parcel: Parcel, flags: Int)

Properties
static Parcelable.Creator<DataRemovalRequest!>

Constants

FLAG_IS_PREFIX

Added in API level 29
static val FLAG_IS_PREFIX: Int

When set, service should use the LocusId#getId() as prefix for the data to be removed.

Value: 1

Public methods

describeContents

Added in API level 29
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

getLocusIdRequests

Added in API level 29
fun getLocusIdRequests(): MutableList<DataRemovalRequest.LocusIdRequest!>

Gets the list of LousIds the apps is requesting to remove.

Return
MutableList<DataRemovalRequest.LocusIdRequest!> This value cannot be null.

getPackageName

Added in API level 29
fun getPackageName(): String

Gets the name of the app that's making the request.

Return
String This value cannot be null.

isForEverything

Added in API level 29
fun isForEverything(): Boolean

Checks if app is requesting to remove content capture data associated with its package.

writeToParcel

Added in API level 29
fun writeToParcel(
    parcel: Parcel,
    flags: Int
): Unit
Parameters
dest The Parcel in which the object should be written. This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 29
static val CREATOR: Parcelable.Creator<DataRemovalRequest!>