nn::applet::CTR::EnableSleep Function

Syntax

void EnableSleep(
     bool isSleepCheck = true
);

Arguments

Name Description
in isSleepCheck Indicates whether to sleep if the system is shut. Sleeps if true.

Return Values

None.

Description

Enables going to sleep.

Unless using this function to enable going to sleep, when the application is active, all replies to the sleep query callback (configured by applet::SetSleepQueryCallback) are treated as if they were REPLY_REJECT.

The applet::Enable function calls applet::EnableSleep(false).

Revision History

2010/11/15
Initial version.

CONFIDENTIAL