Endurance API
Hi! Trying to play with the Endurance Mode https://support.lensstudio.snapchat.com/hc/en-us/articles/4409499793172--Spectacles-2021-Endurance-Mode-Template. But cant see Display object. When i'm trying to use Display.requestDisplayOff(displayCallback), get ReferenceError: identifier 'Display' undefined.
Also cant see the Display in https://docs.snap.com/api/lens-studio/
Comments
-
Still can't get endurance API to work. Had checked "Enable experimental API" in both project and IDE settings. Lens Studio is up to date.
But always get failure after display off request.`Display.requestDisplayOff(displayCallback);
function displayCallback(success){
if(success == false){
script.instructions.text = "failure";
}
}`There is the demo project in the "Project download" section of the Snap Endurance API guide but it is not working too. (https://support.lensstudio.snapchat.com/hc/en-us/articles/4409499793172--Spectacles-2021-Endurance-Mode-Template)
Lens Studio developers, please help!
0