trixnity
Toggle table of contents
5.2.0-SNAPSHOT.CI-20260302.101522
common
Target filter
common
Switch theme
Search in API
Skip to content
trixnity
trixnity-clientserverapi-client
/
de.connect2x.trixnity.clientserverapi.client
/
SyncApiClient
Sync
Api
Client
interface
SyncApiClient
:
ClientEventEmitter
<
SyncEvents
>
Inheritors
SyncApiClientImpl
Members
Members & Extensions
Properties
current
Sync
State
Link copied to clipboard
abstract
val
currentSyncState
:
StateFlow
<
SyncState
>
Functions
cancel
Link copied to clipboard
abstract
suspend
fun
cancel
(
)
emit
Link copied to clipboard
abstract
suspend
fun
emit
(
events
:
SyncEvents
)
start
Link copied to clipboard
abstract
suspend
fun
start
(
filter
:
String
?
=
null
,
setPresence
:
Presence
?
=
null
,
timeout
:
Duration
=
30.seconds
)
start
Once
Link copied to clipboard
abstract
suspend
fun
<
T
>
startOnce
(
filter
:
String
?
=
null
,
setPresence
:
Presence
?
=
null
,
timeout
:
Duration
=
ZERO
,
runOnce
:
suspend
(
SyncEvents
)
->
T
)
:
Result
<
T
>
start
Once
Link copied to clipboard
suspend
fun
SyncApiClient
.
startOnce
(
filter
:
String
?
=
null
,
setPresence
:
Presence
?
=
null
,
timeout
:
Duration
=
ZERO
)
:
Result
<
Unit
>
stop
Link copied to clipboard
abstract
suspend
fun
stop
(
)
subscribe
Link copied to clipboard
abstract
fun
subscribe
(
priority
:
Int
,
subscriber
:
Subscriber
<
SyncEvents
>
)
:
Unsubscriber
sync
Link copied to clipboard
abstract
suspend
fun
sync
(
filter
:
String
?
=
null
,
since
:
String
?
=
null
,
fullState
:
Boolean
=
false
,
setPresence
:
Presence
?
=
null
,
timeout
:
Duration
=
ZERO
,
useStateAfter
:
Boolean
?
=
null
)
:
Result
<
Sync.Response
>
This is the plain sync request. If you want to subscribe to events and more, use
start
or
startOnce
.