Contents

start(endpoint:)

Connects to the specified endpoint and prepares the session to send document updates.

Declaration

final nonisolated(nonsending) func start(endpoint: SpatialPreviewEndpoint) async throws

Parameters

  • endpoint:

    The destination endpoint representing the device to connect to.

Discussion

Call this method once before sending document content via updateContents(data:) or updateContents(url:). The method establishes connection and transitions the session’s state to SpatialPreviewSessionState.connected.