![]() The result of calling “onPowerBudgetExceeded ()” in the program where the above information is displayed is as follows. The reason for using μs is that the measurement result of WatchFacePowerInfo called by “WatchUi :: WatchFaceDelegate :: onPowerBudgetExceeded ()” prepared in connection with “onPartialUpdate ()” is millisecond. (I can’t find manuals for the device simulator, so it’s hard to guess.) The time displayed here seems to be μ seconds. When “File-View Watchface Diagnostics” is selected, the time taken for “onPartialUpdate ()” is displayed. ![]() The measurement results are displayed on a device simulator. Therefore, a mechanism capable of measuring time has been prepared for this processing. This method is prepared as a mechanism that can always update once a second, and is called once a second as long as the processing time in the method is less than a certain fixed time. “WatchUi :: WatchFace :: onPartialUpdate ()” is available from SDK 2.3. ![]() However, if the “onUpdate ()” process takes a long time even in the high power mode, the update timing is once in a plurality of seconds.Īctually, how long it takes for the update process cannot be measured as it is, but can be solved by the following method. “WatchUi :: WatchFace :: onUpdate ()” is called once per minute in the low power mode and once per second in the high power mode. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |