addLocationObserver

abstract fun addLocationObserver(observer: LocationObserver)

Adds LocationObserver that will be notified of new location updates.

Parameters

observer

location observer


abstract fun addLocationObserver(observer: LocationObserver, looper: Looper)

Adds LocationObserver that will be notified of new location updates on a thread, specified by a looper parameter.

Parameters

observer

location observer

looper

looper specifying a thread which the observer will be notified on