UNPKG

react-native-audio-api

Version:

react-native-audio-api provides system for controlling audio in React Native environment compatible with Web Audio API specification

53 lines (48 loc) 1.57 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _events = require("../../events"); class RecordingNotificationManager { constructor() { this.audioEventEmitter = new _events.AudioEventEmitter(globalThis.AudioEventEmitter); } /** * Show the notification with metadata or update if already visible. * * @param info - The info to be displayed. * @returns Promise that resolves after creating notification. */ // eslint-disable-next-line @typescript-eslint/require-await async show(_info) { console.warn('RecordingNotificationManager is not implemented on iOS. Any calls to it will be no-ops.'); } /** * Hide the notification. * * @returns Promise that resolves after hiding notification. */ async hide() {} /** * Check if the notification is currently active. * * @returns Promise that resolves to whether notification is active. */ // eslint-disable-next-line @typescript-eslint/require-await async isActive() { return false; } /** * Add an event listener for notification actions. * * @param eventName - The event name to listen for. * @param callback - The callback to invoke on event. * @returns Promise that resolves to whether notification is active. */ addEventListener(eventName, callback) { return this.audioEventEmitter.addAudioEventListener(eventName, callback); } } var _default = exports.default = new RecordingNotificationManager(); //# sourceMappingURL=RecordingNotificationManager.ios.js.map