nn::applet::CTR::GetInitialWakeupState Function

Syntax

AppletWakeupState GetInitialWakeupState(
     void
);

Arguments

None.

Return Values

"Wakeup" information when an application is launched.

Description

Gets "wakeup" information when an application is launched.

Applications are put into the waiting state within the applet Initialize function until they are woken up. You can get "wakeup" information (the AppletWakeupState enumerated type) indicating how they were woken up.

You can get one of three values: applet::WAKEUP_TO_START (a normal wakeup request), applet::WAKEUP_BY_CANCEL (woken up by a close request), and applet::WAKEUP_BY_POWER_CLICK (woken up by a POWER Button press).

Close the application immediately for a value of applet::WAKEUP_BY_CANCEL or applet::WAKEUP_BY_POWER_BUTTON_CLICK.

For more information on closing applications, see applet::PrepareToClosePreloadedApplication and applet::ClosePreloadedApplication (this function does not return).

Revision History

2010/11/10
Initial version.

CONFIDENTIAL