Class LastKnownLocationInfoManager

    • Constructor Detail

      • LastKnownLocationInfoManager

        public LastKnownLocationInfoManager()
    • Method Detail

      • init

        public void init​(android.content.Context context)
        Description copied from class: BaseManager
        Initialize manager.
        Specified by:
        init in interface Manager
        Overrides:
        init in class BaseManager
        Parameters:
        context - the context for which manager will be initialized.
        See Also:
        LocationListener
      • isBetterLocation

        protected boolean isBetterLocation​(android.location.Location location,
                                           android.location.Location currentBestLocation)
        Determine whether one Location reading is better than the current Location fix
        Parameters:
        location - The new Location that you want to evaluate
        currentBestLocation - The current Location fix, to which you want to compare the new one
      • dispose

        public void dispose()
        Description copied from class: BaseManager
        Dispose manager and release all necessary resources.
        Specified by:
        dispose in interface Manager
        Overrides:
        dispose in class BaseManager
        See Also:
        LocationListener