UNPKG

nativescript-spotify

Version:
29 lines 1.07 kB
var dialogs = require('ui/dialogs'); var TNSSpotifyConstants = (function () { function TNSSpotifyConstants() { } TNSSpotifyConstants.NOTIFY_AUTH_LOGIN_CHANGE = "SpotifyLoginChange"; TNSSpotifyConstants.NOTIFY_LOGIN_CHECK = "SpotifyLoginCheck"; TNSSpotifyConstants.NOTIFY_LOGIN_SUCCESS = "SpotifyLoginSuccess"; TNSSpotifyConstants.NOTIFY_LOGIN_ERROR = "SpotifyLoginError"; TNSSpotifyConstants.NOTIFY_PLAYER_READY = "SpotifyPlayerReady"; TNSSpotifyConstants.KEY_STORE_SESSION = "SpotifySession"; return TNSSpotifyConstants; }()); exports.TNSSpotifyConstants = TNSSpotifyConstants; var Utils = (function () { function Utils() { } Utils.alert = function (msg) { return dialogs.alert(msg); }; Utils.openModal = function (page, view, closeCallback, fullscreen) { page.showModal(view, "Context from showModal", closeCallback, fullscreen); }; Utils.closeModal = function (page) { page.closeModal(); }; return Utils; }()); exports.Utils = Utils; //# sourceMappingURL=common.js.map