Marketing Cloud SDK / com.salesforce.marketingcloud.notifications / NotificationManager / disableNotifications

disableNotifications

abstract fun disableNotifications(): Unit

Disables notifications in the SDK. This does not disable any individual message type(Push, Geofence, or Beacon), but will simply prevent the notification from being shown on the device.Consider only using this for short term disablement of notifications. If you're desire it to turn notifications off long-term then consider disabling each message type directly as that will prevent the device from receiving those messages in the first place.

See Also
com.salesforce.marketingcloud.messages.push.PushMessageManagercom.salesforce.marketingcloud.messages.RegionMessageManager#areNotificationsEnabled()#enableNotifications()