nativescript-spotify
Version:
Spotify for your NativeScript app.
22 lines • 933 B
JavaScript
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