Class CN1Constants
java.lang.Object
com.codename1.ui.CN1Constants
Common constants for Display and CN
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDouble the HD level densitystatic final int4K level densitystatic final intIntermediate density for screens that sit somewhere between HD to 2HDstatic final intHD Up To 1920x1080static final intHi Density Up To 480x854static final intLow Density Up To 240x320static final intMedium Density Up To 360x480static final intVery Hi Density Up To 1440x720static final intVery Low Density 176x220 And Smallerstatic final intUsed by openGallerystatic final intUsed by openGallerystatic final intUsed by openGallerystatic final intUsed by openGallerystatic final intUsed by openGallerystatic final intUsed by openGallerystatic final intCalendar picker type.static final intDate native picker type, it returns a java.util.Date result.static final intDate and time native picker type, it returns a java.util.Date result.static final intDuration picker type.static final intDuration picker type.static final intDuration picker type.static final intStrings native picker type, it returns a String result and accepts a String array.static final intTime native picker type, it returns an integer with minutes since midnight.static final intUsed by getSMSSupport to indicate that SMS can be sent in either seamless or interactive modestatic final intUsed by getSMSSupport to indicate that SMS triggers the native SMS app which will show a compose UIstatic final intUsed by getSMSSupport to indicate that SMS is not supportedstatic final intUsed by getSMSSupport to indicate that SMS is sent in the background without a compose UI -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DENSITY_VERY_LOW
public static final int DENSITY_VERY_LOWVery Low Density 176x220 And Smaller- See Also:
-
DENSITY_LOW
public static final int DENSITY_LOWLow Density Up To 240x320- See Also:
-
DENSITY_MEDIUM
public static final int DENSITY_MEDIUMMedium Density Up To 360x480- See Also:
-
DENSITY_HIGH
public static final int DENSITY_HIGHHi Density Up To 480x854- See Also:
-
DENSITY_VERY_HIGH
public static final int DENSITY_VERY_HIGHVery Hi Density Up To 1440x720- See Also:
-
DENSITY_HD
public static final int DENSITY_HDHD Up To 1920x1080- See Also:
-
DENSITY_560
public static final int DENSITY_560Intermediate density for screens that sit somewhere between HD to 2HD- See Also:
-
DENSITY_2HD
public static final int DENSITY_2HDDouble the HD level density- See Also:
-
DENSITY_4K
public static final int DENSITY_4K4K level density- See Also:
-
PICKER_TYPE_DATE
public static final int PICKER_TYPE_DATEDate native picker type, it returns a java.util.Date result.- See Also:
-
PICKER_TYPE_TIME
public static final int PICKER_TYPE_TIMETime 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_TIMEDate and time native picker type, it returns a java.util.Date result.- See Also:
-
PICKER_TYPE_STRINGS
public static final int PICKER_TYPE_STRINGSStrings native picker type, it returns a String result and accepts a String array.- See Also:
-
PICKER_TYPE_DURATION
public static final int PICKER_TYPE_DURATIONDuration picker type. It returns Long result (milliseconds).- See Also:
-
PICKER_TYPE_DURATION_HOURS
public static final int PICKER_TYPE_DURATION_HOURSDuration picker type. It returns Long result (milliseconds).- See Also:
-
PICKER_TYPE_DURATION_MINUTES
public static final int PICKER_TYPE_DURATION_MINUTESDuration picker type. It returns Long result (milliseconds).- See Also:
-
PICKER_TYPE_CALENDAR
public static final int PICKER_TYPE_CALENDARCalendar picker type. It returns java.util.Date result;- See Also:
-
SMS_NOT_SUPPORTED
public static final int SMS_NOT_SUPPORTEDUsed by getSMSSupport to indicate that SMS is not supported- See Also:
-
SMS_SEAMLESS
public static final int SMS_SEAMLESSUsed by getSMSSupport to indicate that SMS is sent in the background without a compose UI- See Also:
-
SMS_INTERACTIVE
public static final int SMS_INTERACTIVEUsed 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_BOTHUsed by getSMSSupport to indicate that SMS can be sent in either seamless or interactive mode- See Also:
-
GALLERY_IMAGE
public static final int GALLERY_IMAGEUsed by openGallery- See Also:
-
GALLERY_VIDEO
public static final int GALLERY_VIDEOUsed by openGallery- See Also:
-
GALLERY_ALL
public static final int GALLERY_ALLUsed by openGallery- See Also:
-
GALLERY_IMAGE_MULTI
public static final int GALLERY_IMAGE_MULTIUsed by openGallery- See Also:
-
GALLERY_VIDEO_MULTI
public static final int GALLERY_VIDEO_MULTIUsed by openGallery- See Also:
-
GALLERY_ALL_MULTI
public static final int GALLERY_ALL_MULTIUsed by openGallery- See Also:
-
-
Constructor Details
-
CN1Constants
public CN1Constants()
-