java.lang.Object | |
↳ | com.vidinoti.android.vdarsdk.arcore.VidinotiArJavascriptInterface |
Interface that can be called by the javascript. It is used for accessing variables like the projection matrix and view matrix of ARCore and for calling methods like "requestAutomaticPlanePlacement".
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
VidinotiArJavascriptInterface.Listener | Interface defining the methods that can be called from the javascript |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
The string representation of the anchor matrix
| |||||||||||
Returns the communication mode.
| |||||||||||
Returns the type of device
| |||||||||||
Returns the bridge version
| |||||||||||
The string representation of the view matrix
| |||||||||||
Request the placement of an anchor in the center of an image
| |||||||||||
Request the placement of an anchor on an horizontal plane
| |||||||||||
Request continuous plane hit testing.
| |||||||||||
Request an image of the camera.
| |||||||||||
Validates latest placement hit test.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The string representation of the anchor matrix
Returns the communication mode. Here it returns "polling" because the javascript must call the view matrix
at each frame being rendered. It is faster than sending the view matrix value to the javascript via
evaluateJavascript(String, ValueCallback)
.
The string representation of the view matrix
Request the placement of an anchor in the center of an image
id | id representing the anchor |
---|---|
imageUrl | the url of the image to track |
widthInMeters | the physical width of the image, it helps tracking to specify the physical width |
Request the placement of an anchor on an horizontal plane
id | id representing the anchor |
---|
Request continuous plane hit testing.