MigrationRequestResult


public final class MigrationRequestResult
extends Object implements Parcelable

java.lang.Object
   ↳ android.app.privatecompute.MigrationRequestResult


Result of a migration request initiated by a PCC component.

Summary

Constants

int MIGRATION_REQUEST_ACCEPTED

The non-PCC process has accepted the request and will begin migration.

int MIGRATION_REQUEST_REJECTED

The non-PCC process has rejected the request.

Inherited constants

Fields

public static final Creator<MigrationRequestResult> CREATOR

Public constructors

MigrationRequestResult(int status, PersistableBundle extras)

Public methods

int describeContents()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

PersistableBundle getExtras()
int getStatus()
void writeToParcel(Parcel dest, int flags)

Flatten this object in to a Parcel.

Inherited methods

Constants

MIGRATION_REQUEST_ACCEPTED

Added in API level 37
public static final int MIGRATION_REQUEST_ACCEPTED

The non-PCC process has accepted the request and will begin migration.

Constant Value: 1 (0x00000001)

MIGRATION_REQUEST_REJECTED

Added in API level 37
public static final int MIGRATION_REQUEST_REJECTED

The non-PCC process has rejected the request.

Constant Value: 2 (0x00000002)

Fields

CREATOR

Added in API level 37
public static final Creator<MigrationRequestResult> CREATOR

Public constructors

MigrationRequestResult

Added in API level 37
public MigrationRequestResult (int status, 
                PersistableBundle extras)

Parameters
status int: Value is one of the following:
extras PersistableBundle: This value may be null.

Public methods

describeContents

Added in API level 37
public int describeContents ()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Returns
int a bitmask indicating the set of special object types marshaled by this Parcelable object instance.
Value is either 0 or

getExtras

Added in API level 37
public PersistableBundle getExtras ()

Returns
PersistableBundle This value cannot be null.

getStatus

Added in API level 37
public int getStatus ()

Returns
int Value is one of the following:

writeToParcel

Added in API level 37
public void writeToParcel (Parcel dest, 
                int flags)

Flatten this object in to a Parcel.

Parameters
dest Parcel: This value cannot be null.

flags int: Additional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.
Value is either 0 or a combination of the following: