DeviceOrientationListener

  • DeviceOrientationListener receives device orientation data from the FusedOrientationProviderClient.

  • To receive updates, register the listener using FusedOrientationProviderClient.requestOrientationUpdates().

  • The onDeviceOrientationChanged() method is called when a new device orientation 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.