import { EampluginCommon } from './common';
import { Application as app } from "@nativescript/core";
var eam = EAMAppDelegate;
export class Eamplugin extends EampluginCommon {
    launchEAM() {
        console.log('launch eam');
        try {
            const vc = EAMLoginViewController.new();
            vc.modalPresentationStyle = 0 /* FullScreen */;
            app.ios.rootController.presentViewControllerAnimatedCompletion(vc, true, null);
        }
        catch (error) {
            alert(JSON.stringify(error));
        }
    }
    stopEAM() {
        console.log('stop eam');
        app.ios.rootController.dismissViewControllerAnimated(true, null);
    }
}
export function getInfo() {
    return EAMAppDelegate.prototype;
}
export class CustomDelegate extends EAMAppDelegate {
}
export { eam };
//# sourceMappingURL=index.ios.js.map