sippo-sdk / com.quobis.sippo.sipposdk.session / Sessions / enableDoNotDisturb


fun enableDoNotDisturb(context: Context, isEnabled: Boolean, onCompletion: (SippoResourceError?) -> Unit): Unit

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.


context - Application or activity context.

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

onCompletion - Callback that will be invoked when the request is completed. It will receive a SippoResourceError if any error occurs. In case of success, error will be null.