Skip to main content

PopupWindow

PopupWindow

Instance Method

constructor

declare class PopupWindow {
constructor();
}
  • Description

    Create a new ApplicationWindow.

onCreate

declare class PopupWindow {
onCreate(): void
}
  • Description

    Window lifecycle hook, called when Window is added to ApplicationFrame.

onStart

declare class PopupWindow {
onStart(): void
}
  • Description

    Window lifecycle hook, called after onCreate.

onResume

declare class PopupWindow {
onResume(): void
}
  • Description

    Window lifecycle hook, called when the layout is loaded, where you can query the view instance.

onStop

declare class PopupWindow {
onStop(): void
}
  • Description

    Window lifecycle hook, which is called when Window is unmounted on ApplicationFrame.

onDestroy

declare class PopupWindow {
onDestroy(): void
}
  • Description

    Window lifecycle hook, which is called when Window is unmounted on ApplicationFrame.

update

declare class PopupWindow {
update(x: number, y: number, width: number, height: number): void
}
  • Description

    Updates the position and the dimension of the popup window.

dismiss

declare class PopupWindow {
dismiss(): void
}
  • Description

    Disposes of the popup window.

createViewQuery

declare class PopupWindow {
createViewQuery(): View.ViewQuery
}
  • Description

    Create a new viewQuery.

showAtLocation

declare class PopupWindow {
showAtLocation(parent: View, gravity: number, x: number, y: number): void
}
  • Description

    Display the content view in a popup window at the specified location.

getContext

declare class PopupWindow {
getContext(): WindowContext
}
  • Description

    Gets WindowContext.

getResources

declare class PopupWindow {
getResources(): Resources
}
  • Description

    Gets Window Resources.

setContentXML

declare class PopupWindow {
setContentXML(xml: string): void
}
  • Description

    Add layout file to window.

setContentView

declare class PopupWindow {
setContentView(contentView: View): void
}
  • Description

    Change the popup's content.