Copy MarkdownView MarkdownisSleepRequires:@ray-js/lock-sdk≥1.0.0Method signatureisSleep()DescriptionWhether currently in sleep modeParametersNoneReturn ValueType: booleanWhether in sleep modeExamplesimport { isSleep } from '@ray-js/lock-sdk'; const sleeping = isSleep();Previous pageCheck if Lock Supports Sleep FunctionNext pageCheck if Sleep Function is Enabled