ditto-lib / live.ditto / DittoIdentity / Development / <init>

<init>

Development(appName: String? = null, siteID: Long? = null)

An identity to be used while in development when you want to control either or both of the app name and the site ID of the peer.

Parameters

appName - the name of the app. Use this to ensure that connections between devices are only established if they share the same app name. Note that this is only set if the identity is a development identity.

siteID - the site ID for the device. Use this to identity different users or devices. Site IDs are persisted between sessions when using a development identity. Site IDs should be unique and not reused by different users or devices.