I would change the signature to setPreventSleep(success, fail, option) if we change this method to async , what do you think?