OnStart and OnResume in MAUI

Jassim Al Rahma 1,596 Reputation points
2022-08-17T15:43:31.46+00:00

Hi,

Where are the OnStart and OnResume in MAUO and where to define them?

Thanks,
Jassim

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,009 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 49,306 Reputation points Microsoft External Staff
    2022-08-18T05:46:52.347+00:00

    Hello,

    In MAUI, you could use ConfigureLifecycleEvents to call the lifecycle event on each platform.

    Please refer to Platform lifecycle events.

    If you want to call the cross-platform lifecycle events, MAUI also provide the APIs to do it.

    Please refer to Cross-platform lifecycle events.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.