enableDoNotDisturb

fun enableDoNotDisturb(context: Context, isEnabled: Boolean): Completable

Enables/Disables the Do-Not-Disturb option. When activated, disables the current Firebase token to avoid receiving push notifications from the server and blocks incoming calls received through socket.

Parameters

context

Application or activity context.

isEnabled

True to enable the Do-Not-Disturb option, false to disable.