Sort provider by index

This commit is contained in:
Benoit Marty 2023-04-07 21:57:55 +02:00 committed by Benoit Marty
parent 219b97eea7
commit 05a8ca0eec
4 changed files with 9 additions and 3 deletions

View file

@ -22,6 +22,10 @@ import io.element.android.libraries.matrix.api.MatrixClient
* This is the main API for this module
*/
interface PushProvider {
/**
* Allow to sort provider, from lower index to higher index
*/
val index: Int
fun getDistributorNames(): List<String>
suspend fun registerWith(matrixClient: MatrixClient, distributorName: String)
}