Interface Compass

Index

Methods

Methods

public clearWatch(watchID: number)

Parameters

  • watchID: number

public getCurrentHeading(compassSuccess: (heading: CompassHeading) => void, compassError: (error: CompassError) => void, compassOptions?: CompassOptions)

Parameters

  • compassSuccess: (heading: CompassHeading) => void
  • compassError: (error: CompassError) => void
  • compassOptions?: CompassOptions optional

public watchHeading(compassSuccess: (heading: CompassHeading) => void, compassError: (error: CompassError) => void, compassOptions?: CompassOptions)

Parameters

  • compassSuccess: (heading: CompassHeading) => void
  • compassError: (error: CompassError) => void
  • compassOptions?: CompassOptions optional