AmbientBacklightEvent
class AmbientBacklightEvent : Parcelable
| kotlin.Any | |
| ↳ | android.media.quality.AmbientBacklightEvent | 
Ambient backlight event
Summary
| Constants | |
|---|---|
| static Int | 
            
             Event type for ambient backlight events.  | 
        
| static Int | 
            
             Event type for ambient backlight events.  | 
        
| static Int | 
            
             Event type for ambient backlight events.  | 
        
| static Int | 
            
             Event type for ambient backlight events.  | 
        
| Inherited constants | |
|---|---|
| Public constructors | |
|---|---|
            AmbientBacklightEvent(eventType: Int, metadata: AmbientBacklightMetadata?)Constructs AmbientBacklightEvent.  | 
        |
| Public methods | |
|---|---|
| Int | |
| Boolean | |
| Int | 
            
             Gets event type.  | 
        
| AmbientBacklightMetadata? | 
            
             Gets ambient backlight metadata.  | 
        
| Int | 
            hashCode() | 
        
| String | 
            toString() | 
        
| Unit | 
            writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel.  | 
        
| Properties | |
|---|---|
| static Parcelable.Creator<AmbientBacklightEvent!> | |
Constants
AMBIENT_BACKLIGHT_EVENT_DISABLED
static val AMBIENT_BACKLIGHT_EVENT_DISABLED: Int
Event type for ambient backlight events. The ambient backlight is disabled.
Value: 2AMBIENT_BACKLIGHT_EVENT_ENABLED
static val AMBIENT_BACKLIGHT_EVENT_ENABLED: Int
Event type for ambient backlight events. The ambient backlight is enabled.
Value: 1AMBIENT_BACKLIGHT_EVENT_INTERRUPTED
static val AMBIENT_BACKLIGHT_EVENT_INTERRUPTED: Int
Event type for ambient backlight events. The ambient backlight event is preempted by another application.
Value: 4AMBIENT_BACKLIGHT_EVENT_METADATA_AVAILABLE
static val AMBIENT_BACKLIGHT_EVENT_METADATA_AVAILABLE: Int
Event type for ambient backlight events. The ambient backlight metadata is available.
Value: 3Public constructors
AmbientBacklightEvent
AmbientBacklightEvent(
eventType: Int,
metadata: AmbientBacklightMetadata?)
Constructs AmbientBacklightEvent.
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. | 
          
getEventType
fun getEventType(): Int
Gets event type.
getMetadata
fun getMetadata(): AmbientBacklightMetadata?
Gets ambient backlight metadata.
| Return | |
|---|---|
AmbientBacklightMetadata? | 
            the metadata of the event. It's non-null only for AMBIENT_BACKLIGHT_EVENT_METADATA_AVAILABLE. | 
          
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 |