isDndActive

open fun isDndActive(@Nullable accountId: String): Boolean

Check whether Do-not-Disturb mode is active on an account.

Parameters

accountId

ID of the account to check Do-not-Disturb on; null if feature Multiple Accounts is not provided.