Interface StatusBarService

  • All Known Implementing Classes:
    AndroidStatusBarService, DummyStatusBarService, IOSStatusBarService

    public interface StatusBarService
    The status bar service provides access to the native status bar of the underlying platform. At the moment, it's only possible to change the color of the status bar.

    Example

     Services.get(StatusBarService.class).ifPresent(service -> {
          service.setColor(Color.GOLD);
      });

    Android Configuration: none

    iOS Configuration: none

    Since:
    3.0.0
    • Method Detail

      • setColor

        void setColor​(javafx.scene.paint.Color color)
        Sets the color of the status bar to the specified color.
        Parameters:
        color - The color to set the status bar to.