static void ASharedLocation(LocationInfo location) { float latitude = location.latitude; float longitude = location.longitude; InfobipPushInternal.GetCurrentActivity().Call("saveUserLocation", new object[] { latitude, longitude }); }
public static int NumberOfCurrentLiveGeoRegions() { #if UNITY_IPHONE if (Application.platform == RuntimePlatform.IPhonePlayer) { return(IBNumberOfCurrentLiveGeoRegions()); } #elif UNITY_ANDROID return(InfobipPushInternal.GetCurrentActivity().Call <int>("getActiveLiveGeoAreasNumber", new object[] {})); #endif return(0); }
protected static void AEnableLocation() { InfobipPushInternal.GetCurrentActivity().Call("enableLocation", new object[] {}); }
protected static int AStopMonitoringLiveGeoAreas() { return(InfobipPushInternal.GetCurrentActivity().Call <int>("stopMonitoringLiveGeoAreas", new object[] {})); }
protected static bool AIsLiveGeoEnabled() { return(InfobipPushInternal.GetCurrentActivity().Call <bool>("isLiveGeoEnabled", new object[] {})); }
protected static void ADisableLiveGeo() { InfobipPushInternal.GetCurrentActivity().Call("disableLiveGeo", new object[] {}); }
protected static bool AIsUsingCustomLocationService() { return(InfobipPushInternal.GetCurrentActivity().Call <bool>("isUsingCustomLocationService", new object[] {})); }
protected static void AUseCustomLocationService(bool useCustomService) { InfobipPushInternal.GetCurrentActivity().Call("useCustomLocationService", new object[] { useCustomService }); }
protected static void ASetLocationUpdateTimeInterval(int minutes) { InfobipPushInternal.GetCurrentActivity().Call("setLocationUpdateTimeInterval", new object[] { minutes }); }
protected static int AGetLocationUpdateTimeInterval() { return(InfobipPushInternal.GetCurrentActivity().Call <int>("getLocationUpdateTimeInterval", new object[] {})); }