NightModeChangedEvent

public class NightModeChangedEvent extends Object

An immutable event representing a change in state relating to night mode.

Public Constructor Summary

NightModeChangedEvent(boolean inNightMode)
Construct an event to represent entering or exiting night mode.

Public Method Summary

boolean
equals(Object o)
Tests if this NightModeChangedEvent is equal to another.
int
boolean
inNightMode()
Check whether night mode is being entered or exited.

Inherited Method Summary

Public Constructors

public NightModeChangedEvent (boolean inNightMode)

Construct an event to represent entering or exiting night mode.

Parameters
inNightMode true if the UI is entering night mode, or false if it is exiting night mode

Public Methods

public boolean equals (Object o)

Tests if this NightModeChangedEvent is equal to another.

The events are considered equal if they both represent the same transition to or from night mode.

Parameters
o

public int hashCode ()

public boolean inNightMode ()

Check whether night mode is being entered or exited.

Returns
  • true if the UI is entering night mode, or false if it is exiting night mode