setCurrentLocation static method

Future<void> setCurrentLocation(
  1. double latitude,
  2. double longitude
)

Updates current user location with the parameters passed and calls the api to update the device data. Note: a new location is sent to MBurger only if it's distant at least 100m from the last location seen. @param latitude Current latitude. @param longitude Current longitude.

Implementation

static Future<void> setCurrentLocation(double latitude, double longitude) {
  MBPluginsManager.locationDataUpdated(latitude, longitude);
  return MBAudienceManager.shared.setCurrentLocation(latitude, longitude);
}