Class CN1Constants

java.lang.Object
com.codename1.ui.CN1Constants
Direct Known Subclasses:
CN, Display

public class CN1Constants extends Object
Common constants for Display and CN
  • Field Details

    • DENSITY_VERY_LOW

      public static final int DENSITY_VERY_LOW
      Very Low Density 176x220 And Smaller
      See Also:
    • DENSITY_LOW

      public static final int DENSITY_LOW
      Low Density Up To 240x320
      See Also:
    • DENSITY_MEDIUM

      public static final int DENSITY_MEDIUM
      Medium Density Up To 360x480
      See Also:
    • DENSITY_HIGH

      public static final int DENSITY_HIGH
      Hi Density Up To 480x854
      See Also:
    • DENSITY_VERY_HIGH

      public static final int DENSITY_VERY_HIGH
      Very Hi Density Up To 1440x720
      See Also:
    • DENSITY_HD

      public static final int DENSITY_HD
      HD Up To 1920x1080
      See Also:
    • DENSITY_560

      public static final int DENSITY_560
      Intermediate density for screens that sit somewhere between HD to 2HD
      See Also:
    • DENSITY_2HD

      public static final int DENSITY_2HD
      Double the HD level density
      See Also:
    • DENSITY_4K

      public static final int DENSITY_4K
      4K level density
      See Also:
    • PICKER_TYPE_DATE

      public static final int PICKER_TYPE_DATE
      Date native picker type, it returns a java.util.Date result.
      See Also:
    • PICKER_TYPE_TIME

      public static final int PICKER_TYPE_TIME
      Time native picker type, it returns an integer with minutes since midnight.
      See Also:
    • PICKER_TYPE_DATE_AND_TIME

      public static final int PICKER_TYPE_DATE_AND_TIME
      Date and time native picker type, it returns a java.util.Date result.
      See Also:
    • PICKER_TYPE_STRINGS

      public static final int PICKER_TYPE_STRINGS
      Strings native picker type, it returns a String result and accepts a String array.
      See Also:
    • PICKER_TYPE_DURATION

      public static final int PICKER_TYPE_DURATION
      Duration picker type. It returns Long result (milliseconds).
      See Also:
    • PICKER_TYPE_DURATION_HOURS

      public static final int PICKER_TYPE_DURATION_HOURS
      Duration picker type. It returns Long result (milliseconds).
      See Also:
    • PICKER_TYPE_DURATION_MINUTES

      public static final int PICKER_TYPE_DURATION_MINUTES
      Duration picker type. It returns Long result (milliseconds).
      See Also:
    • PICKER_TYPE_CALENDAR

      public static final int PICKER_TYPE_CALENDAR
      Calendar picker type. It returns java.util.Date result;
      See Also:
    • SMS_NOT_SUPPORTED

      public static final int SMS_NOT_SUPPORTED
      Used by getSMSSupport to indicate that SMS is not supported
      See Also:
    • SMS_SEAMLESS

      public static final int SMS_SEAMLESS
      Used by getSMSSupport to indicate that SMS is sent in the background without a compose UI
      See Also:
    • SMS_INTERACTIVE

      public static final int SMS_INTERACTIVE
      Used by getSMSSupport to indicate that SMS triggers the native SMS app which will show a compose UI
      See Also:
    • SMS_BOTH

      public static final int SMS_BOTH
      Used by getSMSSupport to indicate that SMS can be sent in either seamless or interactive mode
      See Also:
  • Constructor Details

    • CN1Constants

      public CN1Constants()