Gamebuilder Development Game Application Series of CANTK window life cycle

Source: Internet
Author: User
Tags linecap

The CANTK window (uiwindow/uiscene) has a complete life cycle like the Android activity and other components, assuming my web app has two windows: Firstwindow,secondwindow, The entire app's life should look like this:

Created with Rapha?l 2.1.2 Firstwindow Firstwindow Secondwindow Secondwindow 1, Firstwindow ' s onsysteminit called 2, Secondwindow ' s onsysteminit called 3, Firstwindow ' s onLoad called 4, Secondwindow ' s onLoad called 5, Firstwindow ' s onbeforeopen called 6, Firstwindow ' s onOpen called Switch to Secondwindow 7, Secondwindow ' s onbeforeopen called 8, Firstwindow ' s onswitchtoback called 9, Secondwindow ' s onOpen called switch back to Firstwindow 10, Firstwindow ' s onswitchtofront called 11, Secondwindow ' s onClose called 12, Firstwindow ' s onClose called 13, Firstwindow ' s onUnload called 14, Secondwindow ' s onUnload called

Connection for process-related events:

    • Onsysteminit
    • OnLoad
    • Onbeforeopen
    • OnOpen
    • Onswitchtoback
    • Onswitchtofront
    • OnClose
    • OnUnload

Online demo of life cycle:

    • Processdemo

Gamebuilder Development Game Application Series of CANTK window life cycle

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.