-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurihandler.ios.js
37 lines (37 loc) · 1.5 KB
/
urihandler.ios.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
"use strict";
/// <reference path='./node_modules/tns-platform-declarations/ios/ios.d.ts' />
/// <reference path='./node_modules/tns-core-modules/tns-core-modules.d.ts' />
Object.defineProperty(exports, "__esModule", { value: true });
var urihandler_common_1 = require("./urihandler.common");
var application = require("application");
var URIHandler = (function (_super) {
__extends(URIHandler, _super);
function URIHandler() {
return _super !== null && _super.apply(this, arguments) || this;
}
return URIHandler;
}(urihandler_common_1._URIHandler));
exports.URIHandler = URIHandler;
var MyDelegate = (function (_super) {
__extends(MyDelegate, _super);
function MyDelegate() {
return _super !== null && _super.apply(this, arguments) || this;
}
MyDelegate.prototype.applicationOpenURLOptions = function (application, url, options) {
if (url) {
URIHandler.prototype.uri = url.absoluteString;
URIHandler.prototype.fragment = url.fragment;
URIHandler.prototype.scheme = url.scheme;
URIHandler.prototype.query = url.query;
URIHandler.prototype.path = url.path;
URIHandler.prototype.host = url.host;
URIHandler.prototype.user = url.user;
URIHandler.prototype.password = url.password;
}
return true;
};
return MyDelegate;
}(UIResponder));
MyDelegate.ObjCProtocols = [UIApplicationDelegate];
exports.MyDelegate = MyDelegate;
application.ios.delegate = MyDelegate;