ZenDeviceEffects


class ZenDeviceEffects : Parcelable
kotlin.Any
   ↳ android.service.notification.ZenDeviceEffects

Represents the set of device effects (affecting display and device behavior in general) that are applied whenever an android.app.AutomaticZenRule is active.

Summary

Nested classes

Builder class for ZenDeviceEffects objects.

Inherited constants
Public methods
Int

Boolean
equals(other: Any?)

Int

Boolean

Whether the wallpaper should be dimmed while the rule is active.

Boolean

Whether the level of color saturation of the display should be set to minimum, effectively switching it to grayscale, while the rule is active.

Boolean

Whether the ambient (always-on) display feature should be disabled while the rule is active.

Boolean

Whether night mode (aka dark theme) should be applied while the rule is active.

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<ZenDeviceEffects!>

Parcelable.Creator that instantiates ZenDeviceEffects objects.

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

equals

fun equals(other: Any?): Boolean
Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

hashCode

fun hashCode(): Int
Return
Int a hash code value for this object.

shouldDimWallpaper

fun shouldDimWallpaper(): Boolean

Whether the wallpaper should be dimmed while the rule is active.

shouldDisplayGrayscale

fun shouldDisplayGrayscale(): Boolean

Whether the level of color saturation of the display should be set to minimum, effectively switching it to grayscale, while the rule is active.

shouldSuppressAmbientDisplay

fun shouldSuppressAmbientDisplay(): Boolean

Whether the ambient (always-on) display feature should be disabled while the rule is active. This will have no effect if the device doesn't support always-on display or if it's not generally enabled.

shouldUseNightMode

fun shouldUseNightMode(): Boolean

Whether night mode (aka dark theme) should be applied while the rule is active.

toString

fun toString(): String
Return
String a string representation of the object.

writeToParcel

fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

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_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

static val CREATOR: Parcelable.Creator<ZenDeviceEffects!>

Parcelable.Creator that instantiates ZenDeviceEffects objects.