DeviceOrientationListener

  • DeviceOrientationListener is an interface for receiving device orientation from FusedOrientationProviderClient.

  • You can register this listener by calling FusedOrientationProviderClient.requestOrientationUpdates.

  • The onDeviceOrientationChanged method is invoked when a new DeviceOrientation is available.

public interface DeviceOrientationListener

Public Method Summary

abstract void
onDeviceOrientationChanged(DeviceOrientation deviceOrientation)
Invoked when a new DeviceOrientation is available.

Public Methods

public abstract void onDeviceOrientationChanged (DeviceOrientation deviceOrientation)

Invoked when a new DeviceOrientation is available.