Skip to main content

GeoLocation.getNorthAlignedHeading

Function

Calculates heading based on north aligned device orientation.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

getNorthAlignedHeading(northAlignedOrientation): number

Calculates heading based on north aligned device orientation.

Parameters

ParameterType
northAlignedOrientationquat

Returns

number