DittoConnectionPriority

enum DittoConnectionPriority : Enum<DittoConnectionPriority>

The priority with which the local device should reach out to particular remote peers in the Ditto mesh.

For most use-cases, this API is not required as Ditto will automatically create an optimal P2P mesh. Certain use-cases, however, might require more manual control over how the mesh is formed.

Entries

Link copied to clipboard

Connect with high priority. Remote peers which are assigned this connection priority will be preferred over normal priority peers.

Link copied to clipboard

Connect with normal priority. This is also the default case unless specified otherwise.

Link copied to clipboard

Do not attempt to connect. Note that connections can be established by either peer, so the remote peer might still connect to this Ditto unless they are similarly configured.

Properties

Link copied to clipboard
val name: String
Link copied to clipboard
val ordinal: Int
Link copied to clipboard
val value: UByte