PushRuleService

interface PushRuleService

Types

Link copied to clipboard
interface PushRuleListener

Functions

Link copied to clipboard
abstract suspend fun addPushRule(kind: RuleKind, pushRule: PushRule)
Link copied to clipboard
abstract fun addPushRuleListener(listener: PushRuleService.PushRuleListener)
Link copied to clipboard
abstract fun fetchPushRules(scope: String = RuleScope.GLOBAL)

Fetch the push rules from the server.

Link copied to clipboard
abstract fun getActions(event: Event): List<Action>
Link copied to clipboard
abstract fun getKeywords(): LiveData<Set<String>>
Link copied to clipboard
abstract fun getPushRules(scope: String = RuleScope.GLOBAL): RuleSet
Link copied to clipboard
abstract suspend fun removePushRule(kind: RuleKind, ruleId: String)
Link copied to clipboard
abstract fun removePushRuleListener(listener: PushRuleService.PushRuleListener)
abstract fun resolveSenderNotificationPermissionCondition(event: Event, condition: SenderNotificationPermissionCondition): Boolean
Link copied to clipboard
abstract suspend fun updatePushRuleActions(    kind: RuleKind,     ruleId: String,     enable: Boolean,     actions: List<Action>?)

Enables/Disables a push rule and updates the actions if necessary.

Link copied to clipboard
abstract suspend fun updatePushRuleEnableStatus(    kind: RuleKind,     pushRule: PushRule,     enabled: Boolean)