Most visited

Recently visited

ARScene.CloudAnchorResolveListener

public static interface ARScene.CloudAnchorResolveListener

com.viro.core.ARScene.CloudAnchorResolveListener


Callback interface for responding to anchor resolution requests. See resolveCloudAnchor(String, CloudAnchorResolveListener) for more details.

Summary

Public methods

abstract void onFailure(String error)

Invoked when the system fails to resolve an anchor.

abstract void onSuccess(ARAnchor anchor, ARNode arNode)

Invoked upon the successful resolution of a cloud anchor.

Public methods

onFailure

void onFailure (String error)

Invoked when the system fails to resolve an anchor. Anchor resolution can fail for a number of reasons: invalid anchor ID, no network access, limited AR tracking, or misconfiguration. The error message is provided in the callback.

Parameters
error String: The error message.

onSuccess

void onSuccess (ARAnchor anchor, 
                ARNode arNode)

Invoked upon the successful resolution of a cloud anchor. The provided ARAnchor has been found and synchronized with the cloud, and the given ARNode has been attached to it. You can use the ARNode to start adding content that will remain synchronized with the cloud anchor.

Parameters
anchor ARAnchor: The new, successfully resolved, cloud anchor.

arNode ARNode: The ARNode attached and synchronized to the cloud anchor, to which you can add virtual content.

Hooray!