Quantcast
Jump to content


Recommended Posts

Posted

Rotary event handling, enabled via the bezel, is supported on the Tizen platform. A bezel is a term used to describe the outside frame of a device, and in the case of a Galaxy Watch, the bezel is the outer ring of the device, which can be rotated. Rotary events are triggered from the Galaxy Watch rotary component when the bezel is rotated clockwise or counterclockwise. The event for each rotation is measured in incremental units called “detents.”

rotary_event.png

Bezel interactions can be used in a variety of ways, such as controlling the application page, controlling the snap list, changing the progress bar value, scrolling the page, changing the volume, and setting configurations such as date-time on the date-time picker.

This blog discusses how to handle rotary events in Tizen web and native applications. In the following example, you’ll learn how to let a user interact with bezel by using the rotary event to receive or reject a call. The user rotates the bezel clockwise to receive the call and counterclockwise to reject it.

galaxy-watch_lifestyle_hands-free_s.png

Note: Because Galaxy Active devices do not have bezels, rotary features will not work on them.


Prerequisites

Tizen Web
In the Tizen web application, add the following line in the config.xml file:

<feature name="tizen.org/feature/input.rotating_bezel"/>

Tizen Native
In the Tizen native application, include the <system_info.h>header file to use the functions and data types of the system information API.

#include<system_info.h>

You also must add the following line to the manifest file:

<feature name="http://tizen.org/feature/input.rotating_bezel">true</feature>

Check capability

Tizen Web

In the Tizen web application, use the following line to check if the device supports rotary events or if it uses bezel:

var isSupport = tizen.systeminfo.getCapability('http://tizen.org/feature/input.rotating_bezel'); 
console.log(' Bezel = ' + isSupport);

The getCapability() function of the Tizen web API returns with information about whether or not the device supports bezel.

Tizen Native
In the Tizen native application, use the following code to check bezel capability:

bool rotaryValue;
int rotaryReturn;
    rotaryReturn = system_info_get_platform_bool("http://tizen.org/feature/input.rotating_bezel", & rotaryValue);
    if (rotaryReturn!= SYSTEM_INFO_ERROR_NONE) {
       dlog_print(DLOG_INFO, LOG_TAG, "Rotary error");
        return;
    }
dlog_print(DLOG_INFO, LOG_TAG, "Bezel: %s", value ? "Supported" : "Not supported");

Implementation

Tizen Web
Register the rotarydetent event. After registering an event, ev.detail.direction provides the direction value. If the value is CW, the bezel is rotated clockwise. If the value of direction is CCW, the bezel is rotated counterclockwise.

document.addEventListener('rotarydetent', function(ev) {
        /* Get the direction value from the event */
        var direction = ev.detail.direction;
        var textbox = document.querySelector('.contents');
        box = document.querySelector('#textbox'); 
        
        if (direction == 'CW') {
            /* Add behavior for clockwise rotation */
            console.log('clockwise');
            box.innerHTML ="clockwise";
        } else if (direction == 'CCW') {
            /* Add behavior for counter-clockwise rotation */
            console.log('counter-clockwise');
            box.innerHTML ="counter-clockwise";
        }
  });

Tizen Native
Register the rotary event in the app using the following line:

eext_rotary_event_handler_add(_rotary_handler_cb, ad);

The handle function is defined using following code:

Eina_Bool
_rotary_handler_cb(appdata_s *data, Eext_Rotary_Event_Info *ev)
{
    if (ev->direction == EEXT_ROTARY_DIRECTION_CLOCKWISE) {
        dlog_print(DLOG_DEBUG, LOG_TAG,
                   "Rotary device rotated in clockwise direction");

    } else {
        dlog_print(DLOG_DEBUG, LOG_TAG,
                   "Rotary device rotated in counter-clockwise direction");
    }
    return EINA_FALSE;
}

If the rotation direction is equal to EEXT_ROTARY_DIRECTION_CLOCKWISE, the bezel is rotated clockwise. Otherwise, the bezel is rotated counterclockwise.


Demo

Two sample apps are attached:
Rotary Native
Rotary Web

Web
When you run the web sample app and turn the bezel clockwise, the following text appears on the watch face:

CW_web.png

When you turn the bezel counter counterclockwise, “counterclockwise” appears on the watch face:

CCW_web.png

Native
When you run the native sample app and turn the bezel clockwise, the following text appears on the watch face:

CW_native.png

When you turn the bezel counterclockwise, the following text appears:

CCW_native.png


For more information

The bezel is the physical controller of some Samsung wearable devices. Understanding the physical characteristics of the bezel will help you design better interactions.

References:

View the full blog at its source



  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Similar Topics

    • By Samsung Newsroom
      Ahead of the opening of CES 2025, Samsung Electronics showcased a range of new products at First Look 2025 — underscoring its technological leadership and introducing Vision AI, a new direction for AI screens.
       
      ▲ Samsung presented the future of AI technology, highlighting four key pillars: “On-Device AI,” “Connectivity,” “Personalized” and “Openness,” which are fully integrated with Knox Security, Bixby and Tizen OS.
       
       
      Vision AI: Bringing Personalized AI to the Center of Daily Life
      The Vision AI Zone provided an overview of Samsung’s signature AI features, presenting technologies that transcend the traditional role of TVs to now deliver personalized experiences tailored to users’ preferences and different environments. Some of the standout features that drew a crowd included Click to Search, which retrieves information with a single click while watching content; Live Translate, which converts foreign-language content into subtitles in the user’s preferred language; and Generative Wallpaper, which uses AI to create customized digital displays.
       

       
      ▲ Using Click to Search, users can click on people or items with the dedicated AI button on a remote while viewing content. The feature identifies the selected object, retrieves relevant information and recommends content in similar genres.
       

       
      ▲ The Live Translate feature allows users to enjoy real-time subtitles in the chosen language, eliminating language barriers.
       

       
      ▲Generative Wallpaper uses AI to generate high-quality 4K images that match users’ preferences, optimized for large screens. This feature enables users to create personalized digital displays that reflect their home’s ambiance, emotions and individual tastes.
       
       
      Next-Generation Screens: Turning Everyday Life Into a Premium Experience
      Also showcased were some of the latest advancements in display technology. Innovations included the HoloDisplay, a floating screen that uses 3D technology to project images in lifelike detail, and the MICRO LED Beauty Mirror, a unique form factor that provides customized beauty solutions.
       
      ▲ The Next Generation Screen Experience Zone showcased Samsung’s latest advancements in display technology.
       

       
      ▲ The HoloDisplay employs Samsung’s anti-distortion and anti-reflective technologies to produce screens that appear to float, unlocking new possibilities for display applications. Its innovative design and advanced functionality earned it a Best of Innovation award at CES 2025.
       
      ▲ Visitors were captivated by the interactive experience of analyzing skin conditions and receiving personalized beauty solutions through the MICRO LED Beauty Mirror. Developed in collaboration with Amorepacific, the display analyzed skin types and provided recommendations. With its exceptional image clarity and reflectance, the MICRO LED Beauty Mirror also earned a Best of Innovation award at CES 2025.
       

       
      https://img.global.news.samsung.com/global/wp-content/uploads/2025/01/Samsung-Visual-Display-CES-2025-First-Look-2025-Private-Show_main8-2.mp4 ▲ The Transparent MICRO LED was featured in a bezel-less design on three sides, resembling an elegant glass frame. This seamless design allows it to blend naturally into any space, transforming the environment into a gallery-like setting.
       
       
      Lifestyle Screens: The Intersection of Technology, Art, and Utility
      Samsung also unveiled a range of lifestyle products combining aesthetic appeal with practical benefits. Highlights included The Frame and The Frame Pro, which transform everyday spaces into personal art galleries, and The Premiere 5, which sets a new standard for home cinema.
       
      ▲ Equipped with Neo QLED technology, The Frame Pro boasts a high-definition screen with sharp contrast, even in bright sunlight. Additionally, with Wireless One Connect, installation is hassle-free.
       

       
      ▲The Premiere 5, the industry’s first interactive triple-laser ultra-short-throw (UST) projector, offers touch interaction functionality on the display it projects, enabling users to engage in touch-based activities such as drawing and playing puzzle games. The Premiere 5 delivers a super large screen of up to 100 inches with exceptional image quality from just 43 centimeters away.
       
      ▲ The sheer size of Samsung’s 115-inch TV was enough to capture visitors’ attention. The expanded lineup of supersized TVs, ranging from the 98-inch models of the QN990F and QN90F to the 100-inch model of the QN80F and the 115-inch model of the QN90F, offers a truly immersive viewing experience.
       
       
      Game-Changing Monitors: Displays for Work, Play and Beyond
      Samsung also presented a lineup of cutting-edge displays designed to transform personal, professional and entertainment spaces. Among them was the Odyssey gaming monitor series, offering an immersive gaming experience with its impressive refresh rate and advanced 3D technology.
       
      ▲The Odyssey 3D (model G90SF) utilizes lenticular lenses and AI technology to transform 2D content into 3D, delivering new levels of immersion.
       
      ▲The 37-inch ViewFinity 37 is optimized for desk environments, offering vivid image quality and enhanced convenience.
       
      Samsung’s next-generation display advancements showcased at CES 2025 go beyond technological innovation — they are thoughtfully designed with the user in mind, combining convenience, practicality and a reimagined approach to smart living. By seamlessly integrating cutting-edge technology, refined design and personalized features, these solutions offered visitors a unique and engaging experience. Looking ahead, Samsung continues to pave the way for smarter, more convenient lifestyles.
      View the full article
    • By Samsung Newsroom
      View the full blog at its source
    • By BGR
      Samsung’s Galaxy S23 launch event is coming on February 1st, but we don’t have to wait to see the Ultra flagship in a hands-on video. If the huge number of Galaxy S23 leaks wasn’t enough to help you decide whether or not to purchase one of the three S23 variants, we now have purported videos out in the wild of the most expensive option.
      Apparently, stores are already getting their Galaxy S23 supply in ahead of the February 1st launch event. Preorders will follow right after the press conference, and we expect the three Galaxy S23 handsets to hit stores a couple of weeks later.
      The Galaxy S23 Ultra hands-on videos below reportedly come from Nicaragua, where some stores shared Galaxy S23 content online well ahead of the phone’s launch:
      One of the clips shows the Galaxy S23 Ultra’s full design. The new Note successor matches previous leaks, not that we expected surprises. We have a large display with curved bezels and flat top and bottom sides. On the back, there’s a massive camera with no fewer than four distinct lenses, including the brand-new 200-megapixel shooter.
      This isn’t a dummy unit, either. The Galaxy S23 Ultra in these clips appears to be a retail version. The person who posted the clips also shared a test of the Galaxy S23 Ultra’s zoom camera in action.
      Moreover, other images seem to confirm some of the Galaxy S23 Ultra camera’s specs and features. The handset features a 200-megapixel sensor, according to the camera interface. That must be the new Isocell HP2 camera that Samsung just announced. And the camera supports 8K video recording at 30fps.
      Separately, the Nicaraguan retail store that posted the hands-on videos also shared photos showing the Galaxy S23, S23 Plus, and S23 Ultra. As you can see, the images confirm some of the colors Samsung will offer Galaxy S23 buyers at launch. The Galaxy S23 Ultra will get Green, Cream, Phantom Black, and Lavender options if this leak is accurate.
      Finally, Evan Blass posted online posters for the Galaxy S23 preorder event that seemingly corroborated the leaks from Nicaragua.
      The retail store didn’t leak the local pricing details for the Galaxy S23 series. Word on the street is that Samsung will keep Galaxy S22 prices in place in the US, while international buyers will see price hikes for all three Galaxy S23 models.
      Don't Miss: Galaxy S23 Ultra release date and specs leak finally reveals everything about the new modelThe post Galaxy S23 Ultra hands-on video leaks ahead of launch event appeared first on BGR.
      View the full article





×
×
  • Create New...