(Wear OS) Get rotary input

Hello! I want to create game for Wear OS, which uses rotary crown on smart watch (for example rotating bezel on galaxy watch).

But I don’t know how to get rotary data :confused: Also i have java code that does it.

How can I implement this in Unity?

if(event.getAction() == MotionEvent.ACTION_SCROLL && RotaryEncoderHelper.isFromRotaryEncoder(event)) {
    RotaryEncoderHelper.getRotaryAxisValue(event); 
}