interface ESPNotificationAdapterInterface {
    addNotificationListener(
        callback: (info: Record<string, any>) => void,
    ): void;
    removeNotificationListener(
        callback: (info: Record<string, any>) => void,
    ): void;
}

Methods

  • Registers a listener for incoming push notifications.

    Parameters

    • callback: (info: Record<string, any>) => void

      The function to call with notification data.

    Returns void

  • Removes a previously registered notification listener.

    Parameters

    • callback: (info: Record<string, any>) => void

      The same callback reference that was passed to addNotificationListener.

    Returns void