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
- CAMERA_FOCUS_MODE
- CAMERA_POSITION
- CLICK_BEHAVIOR
- CLOUD_RECOGNITION_SERVER_REGION deprecated
- CLOUD_RECOGNITION_SERVER_URL
- EASING_CURVE_TYPE
- FONT_STYLE
- HORIZONTAL_ANCHOR
- IMAGE_RECOGNITION_RANGE_EXTENSION
- INITIAL_INSTANT_TRACKING_PLANE_ORIENTATION
- INSTANT_TARGET_EXPANSION_POLICY
- LOCATION_ACCURACY
- STATE
- TRACKER_EFFICIENCY_MODE
- UNKNOWN_ALTITUDE
- VERTICAL_ANCHOR
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
CAMERA_FOCUS_MODE
Object
Possible autofocus modes for the camera.
The following autofocus modes are defined:
- ONCE - The camera performs one more autofocus operation and stays at that autofocus setting. Subsequent calls with this setting will refocus the camera every time.
- CONTINUOUS - The camera constantly adjust the autofocus
- OFF - The camera disables autofocus
CAMERA_POSITION
Object
Possible positions of the camera on the device
The following camera positions are defined:
- FRONT - Front facing camera
- BACK - Back facing camera
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.
CLOUD_RECOGNITION_SERVER_REGION
Object
deprecated
Possible server regions to choose
The following server regions are defined:
- AMERICAS - Indicates that the SDK connects with the cloud recognition server in the Americas region.
- EUROPE - Indicates that the SDK connects with the cloud recognition server in Europe.
CLOUD_RECOGNITION_SERVER_URL
String
Possible region depending server urls
The following server urls are defined:
- AMERICAS - Indicates that the SDK connects with the cloud recognition server in the Americas region.
- EUROPE - Indicates that the SDK connects with the cloud recognition server in Europe.
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
IMAGE_RECOGNITION_RANGE_EXTENSION
Object
Defines if the ImageTracker should use an optimized algorithm to detect target images in a greater
distance to the camera.
Extending the recognition range requires HD camera frame processing and therefore needs more CPU power
than the default recognition range.
The following options are defined:
- ON - Image recognition range extension will be used regardless of the current device performance
- OFF - Image recognition range extension will not be used even though the current device might support it
- AUTO - Image recognition range extension will be used depending on the current device performance. 32 bit devices would turn this setting off while 64 bit devices would turn it on
INITIAL_INSTANT_TRACKING_PLANE_ORIENTATION
: object
Constants for the orientation of the InstantTracking plane.
The following InstantTracking plane orientations are defined:
- HORIZONTAL - Indicates that the InstantTracking plane is horizontal (floor-aligned).
- VERTICAL - Indicates that the InstantTracking plane is vertical (wall-aligned).
INSTANT_TARGET_EXPANSION_POLICY
Object
Defines if a loaded instant target may be expanded.
The following options are defined:
- ALLOW_EXPANSION
- DISALLOW_EXPANSION
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
TRACKER_EFFICIENCY_MODE
Object
Defines the efficiency mode in which a tracker is running.
The following options are defined:
- HIGH_ACCURACY - The best result is calculated in the shortest amount of time for every frame which results in higher CPU usage
- ENERGY_EFFICIENCY - Less energy is needed because the calculations are not as accurate as with the HighAccuracy setting and not every frame is considered
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