BatchUNUserNotificationCenterDelegate


@interface BatchUNUserNotificationCenterDelegate

Implementation of UNUserNotificationCenterDelegate that

Foreground notifications will not be displayed with the default settings. Use the property showForegroundNotifications to control this.

This class should not be subclassed. If you want to do so, please implement UNUserNotificationCenterDelegate directly

  • Shared singleton BatchUNUserNotificationCenterDelegate. Using this allows you to set the instance as UNUserNotificationCenter’s delegate without having to retain it yourself. The shared instance is lazily loaded.

    Declaration

    Objective-C

    @property (class, retain, readonly, nonnull) BatchUNUserNotificationCenterDelegate *sharedInstance;
  • Registers this class’ sharedInstance as UNUserNotificationCenter’s delegate. Equivalent to calling [UNUserNotificationCenter currentNotificationCenter].delegate = BatchUNUserNotificationCenterDelegate.sharedInstance

    Declaration

    Objective-C

    + (void)registerAsDelegate;
  • Should iOS display notifications even if the app is in foreground? Default: false

    Declaration

    Objective-C

    @property int showForegroundNotifications;