nn::applet::CTR::DisableSleep Function

Syntax

void DisableSleep(
     bool isReplyReject = true
);

Arguments

Name Description
in isReplyReject If true, calls applet::ReplySleepQuery(applet::REPLY_REJECT) when a sleep query comes in.

Return Values

None.

Description

Prevents going to sleep.

After using this function to prevent 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.


CONFIDENTIAL