Package live.ditto.transports

Types

Link copied to clipboard

How often to transmit Bluetooth LE advertisements. Higher settings will aid in faster discovery, especially when some devices are locked or running Ditto in the background, at the cost of more battery consumption.

Link copied to clipboard
enum DittoAdvertisementPower : Enum<DittoAdvertisementPower>

How much power to use when transmitting Bluetooth LE advertisements. Higher settings will achieve connections over longer distances at the cost of more battery consumption.

Link copied to clipboard
data class DittoBluetoothLeConfig(    var enabled: Boolean = false,     var advertisementPower: DittoAdvertisementPower = DittoAdvertisementPower.MEDIUM,     var advertisementInterval: DittoAdvertisementFrequency = DittoAdvertisementFrequency.HIGH,     var maxOutgoing: Int? = null,     var mtuRequest: Int? = null) : Cloneable
Link copied to clipboard
data class DittoConnect(    var tcpServers: MutableSet<String> = mutableSetOf(),     var websocketUrls: MutableSet<String> = mutableSetOf(),     var retryIntervalMs: Long = 5000) : DittoConnect, Cloneable

Specific servers that Ditto should attempt to connect to.

Link copied to clipboard
data class DittoListen(var tcp: DittoTcpListenConfig = DittoTcpListenConfig(), var http: DittoHttpListenConfig = DittoHttpListenConfig()) : DittoListen, Cloneable

Configure this device as a Ditto server. Disabled by default.

Link copied to clipboard
data class DittoPeerToPeer(    var bluetoothLe: DittoBluetoothLeConfig = DittoBluetoothLeConfig(),     var lan: DittoLanConfig = DittoLanConfig(),     var wifiAware: DittoWifiAwareConfig = DittoWifiAwareConfig()) : Cloneable

Configuration of peer-to-peer transports, which are able to discover and connect to peers on their own.

Link copied to clipboard
class DittoSyncPermissions(context: Context?)

A utility class for identifying and requesting missing platform permissions on Android.

Link copied to clipboard
data class DittoTransportConfig(    var peerToPeer: DittoPeerToPeer = DittoPeerToPeer(),     var connect: DittoConnect = DittoConnect(),     var listen: DittoListen = DittoListen(),     var global: DittoGlobalConfig = DittoGlobalConfig()) : DittoTransportConfig, Cloneable

A configuration object specifying which network transports Ditto should use to sync data.

Link copied to clipboard
data class NodeElectState(var term: Int = 0)
Link copied to clipboard
sealed class NodeRole
Link copied to clipboard
annotation class WiFiDirectFeature
Link copied to clipboard
interface WifiDirectPlatformLeaderListener
Link copied to clipboard
interface WifiDirectPlatformPeerListener