public interface

RotationProvider.Listener

 androidx.camera.view.RotationProvider.Listener

Overview

Callback interface to receive rotation updates.

Summary

Methods
public voidonRotationChanged(int rotation)

Called when the physical rotation of the device changes.

Methods

public void onRotationChanged(int rotation)

Called when the physical rotation of the device changes.

The rotation is one of the rotations mapped from orientation degrees.

Orientation degreesSurface rotation
[-45°, 45°)
[45°, 135°)
[135°, 225°)
[225°, 315°)