Instance Property

priority

A property that gives you a hint about how to send a given data instance over the network.

Declaration

var priority: ARSession.CollaborationData.Priority { get }

Discussion

If you have reliability options in the network protocol you choose to transport ARSession.CollaborationData among peers, the priority property gives you a hint about which reliability option to choose for a given collaboration data instance. For example, if you use MultipeerConnectivity to send collaboration data over the network, choose MCSessionSendDataMode.reliable when calling send(_:toPeers:with:) after ARKit gives you a collaboration data instance with priority ARSession.CollaborationData.Priority.critical.

See Also

Observing Priority

enum ARSession.CollaborationData.Priority

Options that help you choose the appropriate network protocol or settings for a given data instance.