AlertDialogViewPresenter.ts
921 Bytes
import { RegPresenter } from "../PresenterCCViewFactory";
import { AlertDialogViewType, AlertDialogViewProps, AlertDialogView } from "../view/type/AlertDialogView";
import { Presenter } from "../../../common/classbase/PresenterBase";
import { SDK } from "simba-sdk";
@RegPresenter(AlertDialogViewType)
export default class AlertDialogViewPresenter extends Presenter<AlertDialogViewProps, AlertDialogView>
{
static uuid = "AlertDialogView";
private _viewProps: AlertDialogViewProps;
constructor() {
super();
}
onOpen(props: AlertDialogViewProps) {
super.onOpen(props);
this._viewProps = props;
this.view.setProps(this._viewProps);
this.onShow();
}
onShow() {
super.onShow();
this.view.showView(this._viewProps);
}
onClose() {
super.onClose();
SDK.hideBannerAd();
}
}