ForceNightMode

  • ForceNightMode is an annotation used to override the default night mode in the Navigation SDK.

  • It offers three options: AUTO, FORCE_DAY, and FORCE_NIGHT to control the app's appearance.

  • AUTO lets the Navigation SDK automatically switch between day and night modes based on the user's location and time.

  • FORCE_DAY and FORCE_NIGHT enforce a constant day or night mode, respectively, regardless of external factors.

public abstract @interface ForceNightMode implements Annotation

Values used for overriding the default night mode (AUTO, FORCE_DAY, FORCE_NIGHT).

Constant Summary

int AUTO Specify that the Navigation SDK should determine the appropriate day or night mode according to user's location and local time.
int FORCE_DAY Force day mode.
int FORCE_NIGHT Force night mode.

Inherited Method Summary

Constants

public static final int AUTO

Specify that the Navigation SDK should determine the appropriate day or night mode according to user's location and local time.

Constant Value: 0

public static final int FORCE_DAY

Force day mode.

Constant Value: 1

public static final int FORCE_NIGHT

Force night mode.

Constant Value: 2