nativescript-ibeacon
Version:
iBeacon scanning support for Nativescript
70 lines • 2.78 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var observable_1 = require("data/observable");
var BeaconLocationOptionsIOSAuthType;
(function (BeaconLocationOptionsIOSAuthType) {
BeaconLocationOptionsIOSAuthType[BeaconLocationOptionsIOSAuthType["Always"] = 0] = "Always";
BeaconLocationOptionsIOSAuthType[BeaconLocationOptionsIOSAuthType["WhenInUse"] = 1] = "WhenInUse";
})(BeaconLocationOptionsIOSAuthType = exports.BeaconLocationOptionsIOSAuthType || (exports.BeaconLocationOptionsIOSAuthType = {}));
var BeaconLocationOptionsAndroidAuthType;
(function (BeaconLocationOptionsAndroidAuthType) {
BeaconLocationOptionsAndroidAuthType[BeaconLocationOptionsAndroidAuthType["Coarse"] = 0] = "Coarse";
BeaconLocationOptionsAndroidAuthType[BeaconLocationOptionsAndroidAuthType["Fine"] = 1] = "Fine";
})(BeaconLocationOptionsAndroidAuthType = exports.BeaconLocationOptionsAndroidAuthType || (exports.BeaconLocationOptionsAndroidAuthType = {}));
var Common = (function (_super) {
__extends(Common, _super);
function Common(beaconCallback, options) {
var _this = _super.call(this) || this;
_this.options = {
iOSAuthorisationType: BeaconLocationOptionsIOSAuthType.WhenInUse,
androidAuthorisationType: BeaconLocationOptionsAndroidAuthType.Coarse,
androidAuthorisationDescription: "Location permission needed"
};
if (options) {
_this.options = options;
}
return _this;
}
Common.prototype.requestAuthorization = function () {
return null;
};
Common.prototype.isAuthorised = function () {
return false;
};
Common.prototype.bind = function () {
};
Common.prototype.unbind = function () {
};
Common.prototype.startRanging = function (beaconRegion) {
};
Common.prototype.stopRanging = function (beaconRegion) {
};
Common.prototype.startMonitoring = function (beaconRegion) {
};
Common.prototype.stopMonitoring = function (beaconRegion) {
};
return Common;
}(observable_1.Observable));
exports.Common = Common;
var BeaconRegion = (function () {
function BeaconRegion(identifier, proximityUUID, major, minor) {
this.identifier = identifier;
this.proximityUUID = proximityUUID;
if (major)
this.major = major;
if (minor)
this.minor = minor;
}
return BeaconRegion;
}());
exports.BeaconRegion = BeaconRegion;
var Beacon = (function () {
function Beacon(proximityUUID, major, minor) {
this.proximityUUID = proximityUUID;
this.major = major;
this.minor = minor;
}
return Beacon;
}());
exports.Beacon = Beacon;
//# sourceMappingURL=nativescript-ibeacon.common.js.map