Properties
(static) assetsFolder :string
- string
(static) CURRENT_PAGE :string
Gets or sets the currently loaded page.
- string
- See:
(static) isDebuggable
Gets or sets if the app is hosted in a debuggable native client.
(static, readonly) LABELS :String
Text of available 3D labels.
- String
Properties
| Name | Type | Description |
|---|---|---|
ROUTER_PORTS |
String |
(static) LOG_MESSAGES :string
Log Messages
- string
Properties
| Name | Type | Description |
|---|---|---|
LOAD_BACKGROUND |
string | |
LOAD_MODEL_ROUTER |
string | |
LOAD_MODEL_AR_ROUTER |
string | |
LOAD_MODEL_MARKER |
string | |
LOAD_MODEL_ARROW |
string | |
LOAD_MODEL_BLOCK |
string | |
LOAD_MODEL_RJ45 |
string | |
LOAD_MODEL_AR_RJ45 |
string | |
LOAD_MODEL_CHARGER |
string | |
LOAD_MODEL_AR_CHARGER |
string | |
LOAD_TRACKER_BOX |
string | |
LOAD_TRACKER_ROUTER |
string | |
LOAD_TRACKABLE_BOX |
string | |
LOAD_TRACKABLE_ROUTER |
string | |
LOAD_POSITIONABLE |
string | |
TARGET_BOX_RECOGNIZED |
string | |
TARGET_ROUTER_RECOGNIZED |
string | |
TARGET_BOX_LOST |
string | |
TARGET_ROUTER_LOST |
string |
(static, readonly) MODELS :string
Available models.
- string
Properties
| Name | Type | Description |
|---|---|---|
ROUTER_ITEM |
string | |
RJ45_ITEM |
string | |
ROUTER |
string | |
RJ45 |
string | |
CHARGER_ITEM |
string | |
CHARGER |
string |
(static) NATIVE_COMMANDS :string
Available native commands.
- string
Properties
| Name | Type | Description |
|---|---|---|
INIT |
string | |
BACK |
string | |
LOG |
string | |
ERROR |
string |
(static, readonly) PAGES :String
Available UI pages.
- String
Properties
| Name | Type | Description |
|---|---|---|
WELCOME |
String | |
SCENARIO |
String | |
BOX_SCENARIO |
String | |
ROUTER_SCENARIO |
String | |
MAIN |
String | |
CONTENTS |
String | |
CONTENTS_ITEM |
String | |
INSTRUCTIONS_1 |
String | |
ROUTER |
String | |
ROUTER_GRAPH |
String | |
RJ45_GRAPH |
String | |
RJ45 |
String | |
CHARGER_GRAPH |
String | |
CHARGER |
String |
(static, readonly) PARTS :String
Available 3D model parts.
- String
Properties
| Name | Type | Description |
|---|---|---|
M |
String | |
ETHERNET |
String | |
DSL |
String | |
POWER |
String |
(static, readonly) SOUNDS :Sound
Available sounds.
- Sound
Properties
| Name | Type | Description |
|---|---|---|
LOCATE |
Sound | |
INSTRUCTION |
Sound | |
BOX_HELP |
Sound | |
BOX |
Sound | |
ROUTER |
Sound | |
ROUTER_HELP |
Sound | |
ROUTER_GRAPH |
Sound | |
ROUTER_BACK |
Sound | |
RJ45_GRAPH |
Sound | |
CABLE_VIEW |
Sound | |
AR_OPTION |
Sound | |
POWER_GRAPH |
Sound |
(static, readonly) TARGETS :object
Available targets by tracker.
- object
Properties
| Name | Type | Description |
|---|---|---|
BOX |
object | |
ROUTER |
String | Available targets in the router tracker. |
Methods
(static) close()
Asks the native host to close this view and return to main app.
(static) disableCamera()
Disables the device's camera.
(static) enableCamera()
Prepares the environment for camera usage.
(static) gotoPage(callingPage)
Called from HTML to proceed to a page based on a radio input choice.
| Name | Type | Description |
|---|---|---|
callingPage |
String | The calling page containing the radio inputs.
The radio inputs must be part of a |
- See:
(static) hasPage(pageId) → {boolean}
Gets if a valid page with the specified id, is available in the UI.
| Name | Type | Description |
|---|---|---|
pageId |
string | HTML |
- Type
- boolean
(static) hideDialogs()
Hides all dialogs currently visible.
(static) hideInfoBar()
Hides info bar, footer buttons and any dialogs currently open.
(static) hidePopup()
Hides elements with the .popupText CSS class.
(static) loadPage(page, preventARResetopt)
Called from HTML to move to a page.
| Name | Type | Attributes | Description |
|---|---|---|---|
page |
PAGES | The page to be loaded. |
|
preventARReset |
boolean |
<optional> |
Prevent reseting the AR environment. |
- See:
(static) log(message, dataopt)
Log a message to the console and the app's online analytics.
| Name | Type | Attributes | Description |
|---|---|---|---|
message |
string | ||
data |
Object |
<optional> |
- See:
(static) onAndroidGoBack()
Called by the native hosting Activity on Android devices.
(static) onPageChanged(pageSelector)
Occurs in response to the pagechange event.
| Name | Type | Description |
|---|---|---|
pageSelector |
String | The selector of the page we've just moved to (e.g. |
- Document.event:pagechange
(static) reset(isCommonARopt)
Resets the AR environment to default state.
| Name | Type | Attributes | Description |
|---|---|---|---|
isCommonAR |
boolean |
<optional> |
Indicates if the reset should retain the state of all Wikitude context (trackers, models, camera state etc). |
(static) resetDialogs()
Resets state of previously hidden dialogs.
(static) resetPages()
Resets and refreshes the content of pages.
(static) sendCommand(command, messageopt, dataopt)
Sends a predefined command to the native host.
| Name | Type | Attributes | Description |
|---|---|---|---|
command |
string | ||
message |
string |
<optional> |
|
data |
Object |
<optional> |
- See:
(static) showDialog(dialogSelector)
Shows the dialog associated with the specified page. Its id should be of the form: "pageIdDialog"
| Name | Type | Description |
|---|---|---|
dialogSelector |
String | The selector of the page (e.g. |
(static) showInfoBar()
Hides the loading message and shows info bar and footer buttons.
(static) showPopup(idopt)
Shows the element(s) with the .popupText CSS class
available in the currently loaded page.
| Name | Type | Attributes | Description |
|---|---|---|---|
id |
string |
<optional> |