Class IOSDisplayService

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javafx.geometry.Dimension2D getDefaultDimensions()
      Returns the default screen dimensions of a mobile device, in density independent pixel units.
      javafx.geometry.Dimension2D getScreenResolution()
      Returns the screen resolution of the device, in pixels.
      float getScreenScale()
      Returns the logical density of the display
      boolean hasNotch()
      Indicates if the device has a notch that modifies the display or not.
      boolean isDesktop()
      Returns true if the device is considered a desktop / laptop.
      boolean isPhone()
      Returns true if the device is considered a phone.
      boolean isScreenRound()
      Returns true if the device has a round screen
      boolean isTablet()
      Returns true if the device is considered a tablet.
      javafx.beans.property.ReadOnlyObjectProperty<DisplayService.Notch> notchProperty()
      Property that contains the position of the notch, if any, and can be used to track changes in its location.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IOSDisplayService

        public IOSDisplayService()
    • Method Detail

      • isPhone

        public boolean isPhone()
        Description copied from interface: DisplayService
        Returns true if the device is considered a phone.
        Specified by:
        isPhone in interface DisplayService
        Returns:
        True if the device is considered a phone.
      • isTablet

        public boolean isTablet()
        Description copied from interface: DisplayService
        Returns true if the device is considered a tablet.
        Specified by:
        isTablet in interface DisplayService
        Returns:
        True if the device is considered a tablet. Running on Desktop, if the property charm-desktop-form is set to tablet, it will return true. False otherwise
      • isDesktop

        public boolean isDesktop()
        Description copied from interface: DisplayService
        Returns true if the device is considered a desktop / laptop.
        Specified by:
        isDesktop in interface DisplayService
        Returns:
        True if the device is considered a desktop / laptop.
      • getScreenResolution

        public javafx.geometry.Dimension2D getScreenResolution()
        Description copied from interface: DisplayService
        Returns the screen resolution of the device, in pixels.
        Specified by:
        getScreenResolution in interface DisplayService
        Returns:
        The screen resolution of the device.
      • getDefaultDimensions

        public javafx.geometry.Dimension2D getDefaultDimensions()
        Description copied from interface: DisplayService
        Returns the default screen dimensions of a mobile device, in density independent pixel units. In case of desktop, it gives the form factor of either a phone or a tablet.
        Specified by:
        getDefaultDimensions in interface DisplayService
        Returns:
        The screen dimensions of a mobile device, in dp units.
      • getScreenScale

        public float getScreenScale()
        Description copied from interface: DisplayService
        Returns the logical density of the display
        Specified by:
        getScreenScale in interface DisplayService
        Returns:
        the screen scale
      • isScreenRound

        public boolean isScreenRound()
        Description copied from interface: DisplayService
        Returns true if the device has a round screen
        Specified by:
        isScreenRound in interface DisplayService
        Returns:
        true if the device has a round screen
      • hasNotch

        public boolean hasNotch()
        Description copied from interface: DisplayService
        Indicates if the device has a notch that modifies the display or not.
        Specified by:
        hasNotch in interface DisplayService
        Returns:
        true if the device has a notch, false otherwise
      • notchProperty

        public javafx.beans.property.ReadOnlyObjectProperty<DisplayService.Notch> notchProperty()
        Description copied from interface: DisplayService
        Property that contains the position of the notch, if any, and can be used to track changes in its location.
        Specified by:
        notchProperty in interface DisplayService
        Returns:
        A read only property with the position of the notch if present