create
fun create(configsPath: String, logPath: String? = null, logTag: String = "ouisync", kind: SessionKind = SessionKind.SHARED): Session
Creates a new Ouisync session.
Parameters
configs Path
path to the directory where ouisync stores its config files.
log Path
path to the log file. Ouisync always logs using the android log API but if this param is not null, it logs to the specified file as well.
log Tag
tag for all log messages produced by the Ouisync library.
kind
whether to create shared or unique session. SHARED
should be used by default. UNIQUE
is useful mostly for tests, to ensure test isolation and/or to simulate multiple replicas in a single test.