Uses of Interface
org.vaadin.firitin.devicemotion.DeviceMotion.MotionListener
Packages that use DeviceMotion.MotionListener
-
Uses of DeviceMotion.MotionListener in org.vaadin.firitin.devicemotion
Methods in org.vaadin.firitin.devicemotion with parameters of type DeviceMotion.MotionListenerModifier and TypeMethodDescriptionstatic DeviceMotionDeviceMotion.listen(com.vaadin.flow.component.UI ui, DeviceMotion.MotionListener listener) Starts listening to device motion events and notifies the listener with motion data.static DeviceMotionDeviceMotion.listen(DeviceMotion.MotionListener listener) Starts listening to device motion events and notifies the listener with motion data.static com.vaadin.flow.component.button.ButtonDeviceMotion.requestPermissionAndListen(com.vaadin.flow.component.button.Button button, DeviceMotion.MotionListener listener, Runnable onError) Requests permission (if needed) and then starts listening to device motion events.static com.vaadin.flow.component.button.ButtonDeviceMotion.requestPermissionAndListen(com.vaadin.flow.component.button.Button button, DeviceMotion.MotionListener listener, DeviceMotion.DeviceMotionHandler handler, Runnable onError) Requests permission (if needed) and then starts listening to device motion events.