Extension Name: ScreenTimeout
With this extension you can change user device screen timeout according to your need and set it back as the user set it before.
Version: 1
Realse On: 3 July, 2020
Methods/Function
How to use extension
Set Timeout
Put The Time In Milli Sec to change screen timeout.
Default Timeout
Set Screen Timeout time back as the user set it before.
Note: Ask the user to allow Write System Setting by using the block provided by kodular.
Otherwise the extension will not work rather it will show error.
Note: To set Screen Time to never set milli sec to -1
Please explain exactly what is the difference and / or advantage to the KeepScreenOn method.
(Of course, asking the user to grant WRITE_SETTINGS is not an advantage.)
I donāt know much but I think with this extension you can decide the time for which the user devicesā screen will remain āONā and bright, whereas with built-in Keep Screen On property, it is not possible to assign the time @bodymindpower
Yes, but you can also set it to false: at any time you want.
So where is the difference? And you donāt need any permission with the KeepScreenOn method.
@bodymindpower
Consider here the Auto Screen-off feature/setting which every device have in the devicesā setting menu. In this we are able to select the screen āONā period by selecting the desired time (15 sec, 30 sec, 1 min, etc).
Now if a user wants to perform similar task then he/she would just have to pass the time in the form of millisec parameter with this extension if he/she is using one.
Now to perform same thing without this extension(with Keep Screen On property) will require an extra clock component I guess along with other related blocks.
So this extension may save some blocks.
No-doubt that the mentioned task can be performed without extension but its just that this extension makes the process somewhat easier. This is what I understood, but the developer can clarify more on this.
I will say @Vaibhav explained everything but to make things more easier I will explain more In simple words.
Suppose user has set its device screen timeout to 15 sec. Now if you set the built-in Keep Screen On to True than the screen timeout of that user will be Never/Always but if you set built-in Keep Screen On to False the screen timeout will again get back to 15 sec but with this extension you can set the screen timeout to your desired time let, say to 1 min, 30 min, 15 min, etc. But you will have to pass the time in Milli Sec and with this extension you can also set screen time out to never/always.
Also after editing/modifying the user screen timeout time if you want to set it back as before you can also do that.
Yes I agree but everyone has different choice. My duty was to mention it, now itsās totally depends on the user whether he want use extension or not.
If extensions could begin providing parameters named āsecondsā instead of āmillisecondsā thatād be easier for the developerā¦ Itās simple.