public static interface DeviceDirectionSource.DirectionListener
Modifier and Type | Method and Description |
---|---|
void |
onDirectionChanged(float angle)
Invoked when the device's direction changes.
|
void onDirectionChanged(float angle)
angle
- The angle, in degrees, of the direction of the device, relative to north
(0 degrees), clockwise (so east is 90 degrees). More specifically, this is
the angle between a vector pointing from the middle of the device to its
top, projected to the ground plane, and the vector pointing north.