mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Cleanup store.
This commit is contained in:
committed by
Benoit Marty
parent
20370656cd
commit
dd71517abe
-18
@@ -16,26 +16,8 @@
|
||||
|
||||
package io.element.android.libraries.push.api.store
|
||||
|
||||
import io.element.android.libraries.push.api.model.BackgroundSyncMode
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
|
||||
interface PushDataStore {
|
||||
val pushCounterFlow: Flow<Int>
|
||||
|
||||
// TODO Move all those settings to the per user store...
|
||||
fun areNotificationEnabledForDevice(): Boolean
|
||||
fun setNotificationEnabledForDevice(enabled: Boolean)
|
||||
|
||||
fun backgroundSyncTimeOut(): Int
|
||||
fun setBackgroundSyncTimeout(timeInSecond: Int)
|
||||
fun backgroundSyncDelay(): Int
|
||||
fun setBackgroundSyncDelay(timeInSecond: Int)
|
||||
fun isBackgroundSyncEnabled(): Boolean
|
||||
fun setFdroidSyncBackgroundMode(mode: BackgroundSyncMode)
|
||||
fun getFdroidSyncBackgroundMode(): BackgroundSyncMode
|
||||
|
||||
/**
|
||||
* Return true if Pin code is disabled, or if user set the settings to see full notification content.
|
||||
*/
|
||||
fun useCompleteNotificationFormat(): Boolean
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user