NavigationView.OnNightModeChangedListener

public static interface NavigationView.OnNightModeChangedListener

Interface for a listener which will be notified when the UI enters or exits "night mode". In night mode, user interface elements have reduced brightness and a different color scheme.

Public Method Summary

abstract void
onNightModeChanged(NightModeChangedEvent event)
This method will be called when the listener is first registered and whenever the UI enters or exits night mode.

Public Methods

public abstract void onNightModeChanged (NightModeChangedEvent event)

This method will be called when the listener is first registered and whenever the UI enters or exits night mode.

Parameters
event an event containing the details of what changed, e.g. whether night mode was entered or exited