toggleDesktopNotifications method

void toggleDesktopNotifications(
  1. bool isEnabled
)

Please use {@link Session.setDesktopNotificationEnabled} instead.

@remarks This method will keep being supported, but for new projects, we recommend that you use {@link Session.setDesktopNotificationEnabled}.

Sets desktop notification on or off. Has the same effect as toggling the "Desktop notification" toggle in the TalkJS Inbox UI. Use this function to replicate that toggle elsewhere in your UI if you're using TalkJS in a mode that doesn't show this toggle.

@deprecated

Implementation

external void toggleDesktopNotifications(bool isEnabled);