Sort provider by index

This commit is contained in:
Benoit Marty
2023-04-07 21:57:55 +02:00
committed by Benoit Marty
parent 7333995630
commit 21a07fda07
4 changed files with 9 additions and 3 deletions
@@ -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)
}