Posted by Kseniia Shumelchyk, Android Developer Relations Engineer
In collaboration with our {hardware} companions, we’ve continued to prioritize the Put on OS by Google consumer expertise. As such, we’ve made elementary design adjustments to the platform and considerably expanded the capabilities of the Put on OS hybrid interface that enhance two key areas: energy and efficiency.
With OnePlus Watch 2, powered with the newest model of Put on OS (Put on OS 4), the dual-chipset structure works with our hybrid interface to get each chips to work higher in tandem. This permits much more use circumstances to learn from dramatically prolonged battery lifetime of as much as 100 hours of normal use with all functionalities accessible in Good Mode.
Collectively, we’ve created a premium smartwatch expertise that doesn’t compromise the superior function set or battery life. On this put up, we’ll share how one can profit from these adjustments when constructing experiences for Put on OS.
On the sting of innovation: redesigned smartwatch structure
Put on OS smartwatches have a dual-chipset structure inclusive of a strong utility processor (AP) and extremely low-power co-processor microcontroller unit (MCU). The structure has a strong AP able to dealing with complicated operations en-masse, and is seamlessly coupled with a low energy MCU.
The Put on OS hybrid interface allows clever switching between the MCU or the AP, permitting the AP to be suspended when not wanted to protect battery life. It helps, for example, obtain extra power-efficient experiences, like sensor knowledge processing on the MCU whereas the AP is asleep. On the similar time, the hybrid interface offers a seamless transition between these states, retaining a wealthy and premium consumer expertise with out jarring transitions between energy modes.
Connectivity and notification expertise
To boost connectivity-reliant interactions like notifications and cellphone calls, OnePlus utilized platform capabilities with the notification API within the hybrid interface, enabling the MCU to course of common notification experiences and cut back the necessity to activate the AP.
For instance, bridged notifications will likely be delivered to the watch with out waking up the high-performance AP. Customers can learn and dismiss these notifications whereas the watch continues to be powered by the MCU. The MCU may deal with wearable-specific actions in notifications, equivalent to fast replies or distant actions.
What this implies for growth
You possibly can leverage current Put on OS APIs to get these optimizations with none added effort – no code adjustments required!
Notifications
The notification hybrid interface allows seamless transitions between energy modes to work with the Put on OS notification stack. You get one of the best notification efficiency through the use of the Notification API.
Well being & Health experiences
The Put on OS hybrid interface additionally elevates the health expertise with extra exact exercise monitoring, computerized sports activities recognition and smarter well being knowledge monitoring. All of those might be provided to customers with out compromising battery life.
Beginning with Put on OS 3, builders use Well being Providers on Put on OS to realize entry to sensor knowledge. The well being hybrid interface works underneath the hood to allow energy optimizations by batching sensor knowledge on the MCU and periodically updating developer apps by the Well being Providers API on the AP.
Watch Faces
With Put on OS 4, we launched the Watch Face Format, a declarative XML format to create customizable and power-efficient watch faces.
The platform has created capabilities to implement Watch Face Format rendering on the MCU, so utilizing the brand new format helps future-proof sure watch faces to benefit from rising optimizations in future gadgets for higher battery utilization.
Take a look at the watch face format documentation and design pointers for Put on OS watch faces.
Broaden your attain with Put on OS
With the additions to the Put on OS smartwatch ecosystem and expanded machine capabilities, it is an excellent time to construct experiences for smartwatches that may attain extra customers and profit your online business.
To start creating apps for Put on OS, attempt our Compose for Put on OS codelab, and take a look at the documentation and samples.
Learn extra about developer updates in Put on OS 4, and how one can get your apps prepared for the newest Put on OS watches.
We are able to’t wait to see what experiences you’ll construct!
Leave a Comment