UNPKG

nativescript-spotify

Version:
22 lines 933 B
var TNSSpotifyNotificationObserver = (function (_super) { __extends(TNSSpotifyNotificationObserver, _super); function TNSSpotifyNotificationObserver() { _super.apply(this, arguments); } TNSSpotifyNotificationObserver.new = function () { return _super.new.call(this); }; TNSSpotifyNotificationObserver.prototype.initWithCallback = function (onReceiveCallback) { this._onReceiveCallback = onReceiveCallback; return this; }; TNSSpotifyNotificationObserver.prototype.onReceive = function (notification) { this._onReceiveCallback(notification); }; TNSSpotifyNotificationObserver.ObjCExposedMethods = { "onReceive": { returns: interop.types.void, params: [NSNotification] } }; return TNSSpotifyNotificationObserver; }(NSObject)); exports.TNSSpotifyNotificationObserver = TNSSpotifyNotificationObserver; //# sourceMappingURL=notification.js.map