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 |
|
Representation of a request to remove data associated with a |
Constants | |
---|---|
static Int |
When set, service should use the |
Inherited constants | |
---|---|
Public methods | |
---|---|
Int | |
MutableList<DataRemovalRequest.LocusIdRequest!> |
Gets the list of |
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
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
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
fun getLocusIdRequests(): MutableList<DataRemovalRequest.LocusIdRequest!>
Gets the list of LousId
s the apps is requesting to remove.
Return | |
---|---|
MutableList<DataRemovalRequest.LocusIdRequest!> |
This value cannot be null . |
getPackageName
fun getPackageName(): String
Gets the name of the app that's making the request.
Return | |
---|---|
String |
This value cannot be null . |
isForEverything
fun isForEverything(): Boolean
Checks if app is requesting to remove content capture data associated with its package.
writeToParcel
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 |