Wikitude ARchitect v2.0 API Documentation

Wikitude ARchitect > AR > CONST
Filters

static Class CONST

A static class containing constant values. The Singleton instance of CONST will automatically be created on startup.

Properties

ANIMATION_GROUP_TYPE - object

The property holds various animation group types as string properties.

The following Animation Group types are defined:
ConstantString Representation
PARALLELparallel
SEQUENTIALsequential

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:
ConstantString Representation
LINEARlinear
EASE_IN_QUADeaseInQuad
EASE_OUT_QUADeaseOutQuad
EASE_IN_OUT_QUADeaseInOutQuad
EASE_OUT_IN_QUADeaseOutInQuad
EASE_IN_CUBICeaseInCubic
EASE_OUT_CUBICeaseOutCubic
EASE_IN_OUT_CUBICeaseInOutCubic
EASE_OUT_IN_CUBICeaseOutInCubic
EASE_IN_QUATeaseInQuat
EASE_OUT_QUATeaseOutQuat
EASE_IN_OUT_QUATeaseInOutQuat
EASE_OUT_IN_QUATeaseOutInQuat
EASE_IN_QUINTeaseInQuint
EASE_OUT_QUINTeaseOutQuint
EASE_IN_OUT_QUINTeaseInOutQuint
EASE_OUT_IN_QUINTeaseOutInQuint
EASE_IN_ELASTICeaseInElastic
EASE_OUT_ELASTICeaseOutElastic
EASE_IN_OUT_ELASTICeaseInOutElastic
EASE_OUT_IN_ELASTICeaseOutInElastic
EASE_IN_BACKeaseInBack
EASE_OUT_BACKeaseOutBack
EASE_IN_OUT_BACKeaseInOutBack
EASE_OUT_IN_BACKeaseOutInBack
EASE_IN_SINEeaseInSine
EASE_OUT_SINEeaseOutSine
EASE_IN_OUT_SINEeaseInOutSine
EASE_OUT_IN_SINEeaseOutInSine
EASE_IN_EXPOeaseInExpo
EASE_OUT_EXPOeaseOutExpo
EASE_IN_OUT_EXPOeaseInOutExpo
EASE_OUT_IN_EXPOeaseOutInExpo
EASE_IN_CIRCeaseInCirc
EASE_OUT_CIRCeaseOutCirc
EASE_IN_OUT_CIRCeaseInOutCirc
EASE_OUT_IN_CIRCeaseOutInCirc
EASE_IN_BOUNCEeaseInBounce
EASE_OUT_BOUNCEeaseOutBounce
EASE_IN_OUT_BOUNCEeaseInOutBounce
EASE_OUT_IN_BOUNCEeaseOutInBounce
EASE_IN_CURVEeaseInCurve
EASE_OUT_CURVEeaseOutCurve

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 - int

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


Copyright © 2013 Wikitude GmbH. All rights reserved.