GRLocationManager

class GRLocationManager : NSObject, CLLocationManagerDelegate

Undocumented

  • Undocumented

    Declaration

    Swift

    static var shared = GRLocationManager()
  • Undocumented

    Declaration

    Swift

    var countryCodeByLocation : String?
  • Undocumented

    Declaration

    Swift

    static var countryCodeByCarrier : String?
  • Undocumented

    Declaration

    Swift

    var userLocationUpdated = true
  • Undocumented

    Declaration

    Swift

    var usersInfo = [String : (avgRating : Double , count :Int)]()
  • Undocumented

    Declaration

    Swift

    var timer : Timer?
  • Undocumented

    Declaration

    Swift

    var getUsersByLocationComplete : ((String?) -> Void)!
  • Undocumented

    Declaration

    Swift

    var currentLocation : CLLocation?
  • Undocumented

    Declaration

    Swift

    override init()
  • Undocumented

    Declaration

    Swift

    func getCurrentLocation(vc: UIViewController? , complete : @escaping (_ location : CLLocation) -> Void)
  • Undocumented

    Declaration

    Swift

    func updateUserLocationInFirebase()
  • Undocumented

    Declaration

    Swift

    func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation])
  • Undocumented

    Declaration

    Swift

    func locationManager(_ manager: CLLocationManager, didFailWithError error: Error)
  • Undocumented

    Declaration

    Swift

    func getUsersByLocation(origin : CLLocationCoordinate2D , radius : Double,complete :  @escaping (_ errorDesc : String?) -> Void)