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

36 lines (34 loc) 951 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; /* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable no-useless-constructor */ /* eslint-disable @typescript-eslint/require-await */ /// Mock Manager for playback notifications. Does nothing. class PlaybackNotificationManager { isRegistered_ = false; isShown_ = false; constructor() {} async register() {} async show(info) {} async update(info) {} async hide() {} async unregister() {} async enableControl(control, enabled) {} async isActive() { return this.isShown_; } isRegistered() { return this.isRegistered_; } addEventListener(eventName, callback) { // dummy subscription object with a no-op remove method return { remove: () => {} }; } } var _default = exports.default = new PlaybackNotificationManager(); //# sourceMappingURL=PlaybackNotificationManager.js.map