UNPKG

nativescript-cast

Version:

NativeScript Chromecast Plugin.

55 lines 2.41 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var cast_common_1 = require("./cast.common"); var cast_types_1 = require("./cast.types"); var MediaQueueCallback = (function (_super) { __extends(MediaQueueCallback, _super); function MediaQueueCallback(owner) { var _this = _super.call(this) || this; _this.owner = owner; return global.__native(_this); } MediaQueueCallback.prototype.itemsReloaded = function () { this.owner.sendEvent(cast_common_1.CastButtonBase.castEvent, { eventName: cast_types_1.CastEvent.itemsReloaded, android: this.owner.nativeView }); }; MediaQueueCallback.prototype.itemsInsertedInRange = function (insertIndex, insertCount) { this.owner.sendEvent(cast_common_1.CastButtonBase.castEvent, { eventName: cast_types_1.CastEvent.itemsInsertedInRange, insertIndex: insertIndex, insertCount: insertCount, android: this.owner.nativeView }); }; MediaQueueCallback.prototype.itemsUpdatedAtIndexes = function (indexes) { this.owner.sendEvent(cast_common_1.CastButtonBase.castEvent, { eventName: cast_types_1.CastEvent.itemsUpdatedAtIndexes, indexes: indexes, android: this.owner.nativeView }); }; MediaQueueCallback.prototype.itemsRemovedAtIndexes = function (indexes) { this.owner.sendEvent(cast_common_1.CastButtonBase.castEvent, { eventName: cast_types_1.CastEvent.itemsRemovedAtIndexes, indexes: indexes, android: this.owner.nativeView }); }; MediaQueueCallback.prototype.mediaQueueChanged = function () { this.owner.sendEvent(cast_common_1.CastButtonBase.castEvent, { eventName: cast_types_1.CastEvent.mediaQueueChanged, android: this.owner.nativeView }); }; MediaQueueCallback.prototype.mediaQueueWillChange = function () { this.owner.sendEvent(cast_common_1.CastButtonBase.castEvent, { eventName: cast_types_1.CastEvent.mediaQueueWillChange, android: this.owner.nativeView }); }; return MediaQueueCallback; }(com.google.android.gms.cast.framework.media.MediaQueue.Callback)); exports.MediaQueueCallback = MediaQueueCallback; //# sourceMappingURL=media-queue-callback.android.js.map