public final class Adjustment extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<Adjustment> |
CREATOR |
static String |
GROUP_KEY_OVERRIDE_KEY |
static String |
NEEDS_AUTOGROUPING_KEY |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
protected |
Adjustment(Parcel in) |
|
Adjustment(String pkg,
String key,
int importance,
Bundle signals,
CharSequence explanation,
Uri reference,
int user)
Create a notification adjustment.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
CharSequence |
getExplanation() |
int |
getImportance() |
String |
getKey() |
String |
getPackage() |
Uri |
getReference() |
Bundle |
getSignals() |
int |
getUser() |
void |
writeToParcel(Parcel dest,
int flags)
Flatten this object in to a Parcel.
|
public static final String GROUP_KEY_OVERRIDE_KEY
public static final String NEEDS_AUTOGROUPING_KEY
public static final Parcelable.Creator<Adjustment> CREATOR
public Adjustment(String pkg, String key, int importance, Bundle signals, CharSequence explanation, Uri reference, int user)
pkg
- The package of the notification.key
- The notification key.importance
- The recommended importance of the notification.signals
- A bundle of signals that should inform notification grouping and ordering.explanation
- A human-readable justification for the adjustment.reference
- A reference to an external object that augments the
explanation, such as a
ContactsContract.Contacts.CONTENT_LOOKUP_URI
,
or null.protected Adjustment(Parcel in)
public String getPackage()
public String getKey()
public int getImportance()
public CharSequence getExplanation()
public Uri getReference()
public Bundle getSignals()
public int getUser()
public int describeContents()
Parcelable
Parcelable.writeToParcel(Parcel, int)
,
the return value of this method must include the
Parcelable.CONTENTS_FILE_DESCRIPTOR
bit.describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public void writeToParcel(Parcel dest, int flags)
Parcelable
writeToParcel
in interface Parcelable
dest
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.