{"version":3,"file":"onNotificationReceivedInForeground.mjs","sources":["../../../../../../src/pushNotifications/providers/pinpoint/apis/onNotificationReceivedInForeground.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { PlatformNotSupportedError } from '@aws-amplify/core/internals/utils';\n/**\n * Registers a listener that will be triggered when a notification is received while app is in a foreground state.\n *\n * @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026.\n *\n * @param {OnNotificationReceivedInForegroundInput} input - A callback handler to be invoked with the received\n * {@link PushNotificationMessage}.\n * @returns {OnNotificationReceivedInForegroundOutput} - An object with a remove function to remove the listener.\n * @example\n * ```ts\n * // Register a listener\n * onNotificationReceivedInForeground(message => {\n *   doSomething(message);\n * });\n * ```\n * @example\n * ```ts\n * // Register multiple listeners\n * onNotificationReceivedInForeground(message => {\n *   doSomething(message);\n * });\n *\n * onNotificationReceivedInForeground(message => {\n *   doSomethingElse(message);\n * });\n * ```\n */\nexport const onNotificationReceivedInForeground = () => {\n    throw new PlatformNotSupportedError();\n};\n"],"names":[],"mappings":";;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,kCAAkC,GAAG,MAAM;AACxD,IAAI,MAAM,IAAI,yBAAyB,EAAE;AACzC;;;;"}