Closed finscn closed 10 years ago
No. Try this (untested):
EJ_BIND_GET(idleTimer, ctx) {
return JSValueMakeBoolean(ctx, [UIApplication sharedApplication].idleTimerDisabled);
}
EJ_BIND_SET(idleTimer, ctx, value) {
[UIApplication sharedApplication].idleTimerDisabled = JSValueToBoolean(ctx, value);
}
In Ejecta, it's set to YES
by default, btw.
I want to set application.idleTimerDisabled via JS in ejecta. Is there a way to do it?