Cleanup store.
This commit is contained in:
parent
20370656cd
commit
dd71517abe
7 changed files with 40 additions and 137 deletions
|
|
@ -21,12 +21,17 @@ package io.element.android.libraries.pushstore.api
|
|||
*/
|
||||
interface UserPushStore {
|
||||
suspend fun getPushProviderName(): String?
|
||||
|
||||
suspend fun setPushProviderName(value: String)
|
||||
|
||||
suspend fun getCurrentRegisteredPushKey(): String?
|
||||
|
||||
suspend fun setCurrentRegisteredPushKey(value: String)
|
||||
|
||||
suspend fun areNotificationEnabledForDevice(): Boolean
|
||||
suspend fun setNotificationEnabledForDevice(enabled: Boolean)
|
||||
|
||||
/**
|
||||
* Return true if Pin code is disabled, or if user set the settings to see full notification content.
|
||||
*/
|
||||
fun useCompleteNotificationFormat(): Boolean
|
||||
|
||||
suspend fun reset()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue