CONST Class
A static class containing constant values. The Singleton instance of CONST will automatically be created on startup.
Item Index
Properties
ANIMATION_GROUP_TYPE
Object
The property holds various animation group types as string
properties.
The following Animation Group types are defined:
Constant | String Representation |
PARALLEL | parallel |
SEQUENTIAL | sequential |
One can access it by writing e.g. AR.CONST.ANIMATION_GROUP_TYPE.PARALLEL
CLICK_BEHAVIOR
Object
The different click behaviors available
The following click behaviors are defined:
- CLICK
- TOUCH_UP
- TOUCH_DOWN
See AR.context.clickBehavior for details.
EASING_CURVE_TYPE
Object
The property holds various easing curve types as string
properties.
The following Easing Curve types are defined:
Constant | String Representation |
LINEAR | linear |
EASE_IN_QUAD | easeInQuad |
EASE_OUT_QUAD | easeOutQuad |
EASE_IN_OUT_QUAD | easeInOutQuad |
EASE_OUT_IN_QUAD | easeOutInQuad |
EASE_IN_CUBIC | easeInCubic |
EASE_OUT_CUBIC | easeOutCubic |
EASE_IN_OUT_CUBIC | easeInOutCubic |
EASE_OUT_IN_CUBIC | easeOutInCubic |
EASE_IN_QUAT | easeInQuat |
EASE_OUT_QUAT | easeOutQuat |
EASE_IN_OUT_QUAT | easeInOutQuat |
EASE_OUT_IN_QUAT | easeOutInQuat |
EASE_IN_QUINT | easeInQuint |
EASE_OUT_QUINT | easeOutQuint |
EASE_IN_OUT_QUINT | easeInOutQuint |
EASE_OUT_IN_QUINT | easeOutInQuint |
EASE_IN_ELASTIC | easeInElastic |
EASE_OUT_ELASTIC | easeOutElastic |
EASE_IN_OUT_ELASTIC | easeInOutElastic |
EASE_OUT_IN_ELASTIC | easeOutInElastic |
EASE_IN_BACK | easeInBack |
EASE_OUT_BACK | easeOutBack |
EASE_IN_OUT_BACK | easeInOutBack |
EASE_OUT_IN_BACK | easeOutInBack |
EASE_IN_SINE | easeInSine |
EASE_OUT_SINE | easeOutSine |
EASE_IN_OUT_SINE | easeInOutSine |
EASE_OUT_IN_SINE | easeOutInSine |
EASE_IN_EXPO | easeInExpo |
EASE_OUT_EXPO | easeOutExpo |
EASE_IN_OUT_EXPO | easeInOutExpo |
EASE_OUT_IN_EXPO | easeOutInExpo |
EASE_IN_CIRC | easeInCirc |
EASE_OUT_CIRC | easeOutCirc |
EASE_IN_OUT_CIRC | easeInOutCirc |
EASE_OUT_IN_CIRC | easeOutInCirc |
EASE_IN_BOUNCE | easeInBounce |
EASE_OUT_BOUNCE | easeOutBounce |
EASE_IN_OUT_BOUNCE | easeInOutBounce |
EASE_OUT_IN_BOUNCE | easeOutInBounce |
EASE_IN_CURVE | easeInCurve |
EASE_OUT_CURVE | easeOutCurve |
A detailed description on the various easing curve types are described here.
One can access it by writing e.g. AR.CONST.EASING_CURVE_TYPE.LINEAR
FONT_STYLE
Object
The property holds various font styles as string properties.
The following font styles are defined:
- NORMAL
- BOLD
- ITALIC
One can access it by writing e.g. AR.CONST.FONT_STYLE.NORMAL
HORIZONTAL_ANCHOR
Object
The property holds various horizontal anchors as int
properties.
The following horizontal anchors are defined:
- LEFT
- CENTER
- RIGHT
One can access it by writing e.g. AR.CONST.HORIZONTAL_ANCHOR.LEFT
LOCATION_ACCURACY
Object
The level of accuracy of a location reported back from the
system. The property holds various accuracy levels as int
properties.
The following accuracy levels are defined:
- HIGH - the reported location is very accurate with a potential inaccuracy of up to 10 meters
- MEDIUM - the reported location is fairly accurate with a potential inaccuracy between 10 and 35 meters
- LOW - the reported location is inaccurate with a potential inaccuracy of more than 35 meters
One can access it by writing e.g. AR.CONST.LOCATION_ACCURACY.LOW
STATE
Object
The property holds various states as int properties.
The following states are defined:
- INITIALIZED - The object is initialized, but no data is loaded.
- LOADING - The data is currently being loaded.
- LOADED - The data is loaded.
- PLAYING - The file is currently being played.
- ERROR - The file cannot be loaded or played. This can have various reasons, including the data not being fetchable, the file being corrupt etc.
One can access it by writing e.g. AR.CONST.STATE.INITIALIZED
UNKNOWN_ALTITUDE
Number
The value indicating that the altitude is unknown or cannot
be fetched.
It is set to -32768 meters. This altitude-level is impossible on the
earth's surface.
In case a GeoLocation has set its altitude to UNKNOWN_ALTITUDE, the true altitude will be assumed to be on the same altitude level as the user.
VERTICAL_ANCHOR
Object
The property holds various vertical anchors as int
properties.
The following vertical anchors are defined:
- TOP
- MIDDLE
- BOTTOM
One can access it by writing e.g. AR.CONST.VERTICAL_ANCHOR.TOP