nativescript-cast
Version:
NativeScript Chromecast Plugin.
55 lines • 2.39 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var cast_common_1 = require("./cast.common");
var cast_types_1 = require("./cast.types");
var MediaQueueDelegate = (function (_super) {
__extends(MediaQueueDelegate, _super);
function MediaQueueDelegate() {
var _this = _super.call(this) || this;
return global.__native(_this);
}
MediaQueueDelegate.prototype.mediaQueueDidReloadItems = function (queue) {
this.owner.sendEvent(cast_common_1.CastButtonBase.castEvent, {
eventName: cast_types_1.CastEvent.itemsReloaded,
ios: this.owner.nativeView
});
};
MediaQueueDelegate.prototype.didInsertItemsInRange = function (queue, range) {
this.owner.sendEvent(cast_common_1.CastButtonBase.castEvent, {
eventName: cast_types_1.CastEvent.itemsInsertedInRange,
insertIndex: range.location,
insertCount: range.length,
ios: this.owner.nativeView
});
};
MediaQueueDelegate.prototype.didUpdateItemsAtIndexes = function (queue, indexes) {
this.owner.sendEvent(cast_common_1.CastButtonBase.castEvent, {
eventName: cast_types_1.CastEvent.itemsUpdatedAtIndexes,
indexes: indexes,
ios: this.owner.nativeView
});
};
MediaQueueDelegate.prototype.didRemoveItemsAtIndexes = function (queue, indexes) {
this.owner.sendEvent(cast_common_1.CastButtonBase.castEvent, {
eventName: cast_types_1.CastEvent.itemsRemovedAtIndexes,
indexes: indexes,
ios: this.owner.nativeView
});
};
MediaQueueDelegate.prototype.mediaQueueWillChange = function (queue) {
this.owner.sendEvent(cast_common_1.CastButtonBase.castEvent, {
eventName: cast_types_1.CastEvent.mediaQueueChanged,
ios: this.owner.nativeView
});
};
MediaQueueDelegate.prototype.mediaQueueDidChange = function (queue) {
this.owner.sendEvent(cast_common_1.CastButtonBase.castEvent, {
eventName: cast_types_1.CastEvent.mediaQueueWillChange,
ios: this.owner.nativeView
});
};
MediaQueueDelegate.ObjCProtocols = [GCKMediaQueueDelegate];
return MediaQueueDelegate;
}(NSObject));
exports.MediaQueueDelegate = MediaQueueDelegate;
//# sourceMappingURL=media-queue-delegate.ios.js.map