[MatrixSDK] makes sure to release FFI objects from RustMatrixClient
This commit is contained in:
parent
61e67b932d
commit
7504b0fdbd
4 changed files with 27 additions and 23 deletions
|
|
@ -24,12 +24,12 @@ import io.element.android.libraries.matrix.api.room.RoomSummaryDataSource
|
|||
import org.matrix.rustcomponents.sdk.MediaSource
|
||||
import java.io.Closeable
|
||||
|
||||
interface MatrixClient : Closeable {
|
||||
interface MatrixClient {
|
||||
val sessionId: SessionId
|
||||
val roomSummaryDataSource: RoomSummaryDataSource
|
||||
fun getRoom(roomId: RoomId): MatrixRoom?
|
||||
fun startSync()
|
||||
fun stopSync()
|
||||
fun roomSummaryDataSource(): RoomSummaryDataSource
|
||||
fun mediaResolver(): MediaResolver
|
||||
suspend fun logout()
|
||||
suspend fun loadUserDisplayName(): Result<String>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue