UNPKG

nativescript-fingerprint-auth-custom

Version:

Fork from nativescript-fingerprint-auth to implement custom Android Screen. fingerprint authentication plugin for use in NativeScript apps

41 lines (40 loc) 1.84 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var frame_1 = require("tns-core-modules/ui/frame"); var Activity = (function (_super) { __extends(Activity, _super); function Activity() { return _super !== null && _super.apply(this, arguments) || this; } Activity.prototype.onCreate = function (savedInstanceState) { if (!this._callbacks) { frame_1.setActivityCallbacks(this); } this._callbacks.onCreate(this, savedInstanceState, _super.prototype.onCreate); }; Activity.prototype.onSaveInstanceState = function (outState) { this._callbacks.onSaveInstanceState(this, outState, _super.prototype.onSaveInstanceState); }; Activity.prototype.onStart = function () { this._callbacks.onStart(this, _super.prototype.onStart); }; Activity.prototype.onStop = function () { this._callbacks.onStop(this, _super.prototype.onStop); }; Activity.prototype.onDestroy = function () { this._callbacks.onDestroy(this, _super.prototype.onDestroy); }; Activity.prototype.onBackPressed = function () { this._callbacks.onBackPressed(this, _super.prototype.onBackPressed); }; Activity.prototype.onRequestPermissionsResult = function (requestCode, permissions, grantResults) { this._callbacks.onRequestPermissionsResult(this, requestCode, permissions, grantResults, undefined); }; Activity.prototype.onActivityResult = function (requestCode, resultCode, data) { this._callbacks.onActivityResult(this, requestCode, resultCode, data, _super.prototype.onActivityResult); }; Activity = __decorate([ JavaProxy("org.nativescript.fingerprintplugin.AppCompatActivity") ], Activity); return Activity; }(android.support.v7.app.AppCompatActivity));