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

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.

Link copied to clipboard

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

Link copied to clipboard

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

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.