host

fun host(session: Session, ttlDays: Int = 1, onCompleted: (cloudAnchorId: String?, state: Anchor.CloudAnchorState) -> Unit? = null)

Hosts a Cloud Anchor based on the Anchor

Parameters

ttlDays

The lifetime of the anchor in days.

onCompleted

Called when the task completes successfully or with an error.

See also