public static interface

VidinotiArJavascriptInterface.Listener

com.vidinoti.android.vdarsdk.arcore.VidinotiArJavascriptInterface.Listener
Known Indirect Subclasses

Class Overview

Interface defining the methods that can be called from the javascript

Summary

Public Methods
abstract void closeBrowser()
Called when the AR view must be closed (e.g.
abstract void onRequestAutomaticImagePlacement(String id, String imageUrl, Float widthInMeters)
Called when the WebView content requested the detection of an image.
abstract void onRequestAutomaticPlanePlacement(String id)
Called when the WebView content requested the detection of a plane.
abstract void onRequestContinuousPlanePlacement()
Called when a continuous hit testing must be performed
abstract void onRequestScreenCapture()
Called when the WebView content requested a image capture of the camera.
abstract void onValidatePlacement()
Called when the last placement must be used as anchor
abstract void stopAR()
Called when the ARCore session can be stopped

Public Methods

public abstract void closeBrowser ()

Called when the AR view must be closed (e.g. at the end of an animation)

public abstract void onRequestAutomaticImagePlacement (String id, String imageUrl, Float widthInMeters)

Called when the WebView content requested the detection of an image. Once an image has been detected, the anchor matrix must be updated (See sendAnchorMatrix(float[]) and sendAnchorPlaced(String) called.

Parameters
id the id corresponding to the placement request
imageUrl the url of the image to track
widthInMeters the physical width of the image, it improves the tracking to specify the physical size

public abstract void onRequestAutomaticPlanePlacement (String id)

Called when the WebView content requested the detection of a plane. Once a plane has been detected, the anchor matrix must be updated (See sendAnchorMatrix(float[]) and sendAnchorPlaced(String) called.

Parameters
id the id corresponding to the placement request

public abstract void onRequestContinuousPlanePlacement ()

Called when a continuous hit testing must be performed

public abstract void onRequestScreenCapture ()

Called when the WebView content requested a image capture of the camera. The screen capture must be sent via sendScreenCapture(String)

public abstract void onValidatePlacement ()

Called when the last placement must be used as anchor

public abstract void stopAR ()

Called when the ARCore session can be stopped