예제 #1
0
    static void ASharedLocation(LocationInfo location)
    {
        float latitude  = location.latitude;
        float longitude = location.longitude;

        InfobipPushInternal.GetCurrentActivity().Call("saveUserLocation", new object[] { latitude, longitude });
    }
예제 #2
0
 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);
 }
예제 #3
0
 protected static void AEnableLocation()
 {
     InfobipPushInternal.GetCurrentActivity().Call("enableLocation", new object[] {});
 }
예제 #4
0
 protected static int AStopMonitoringLiveGeoAreas()
 {
     return(InfobipPushInternal.GetCurrentActivity().Call <int>("stopMonitoringLiveGeoAreas", new object[] {}));
 }
예제 #5
0
 protected static bool AIsLiveGeoEnabled()
 {
     return(InfobipPushInternal.GetCurrentActivity().Call <bool>("isLiveGeoEnabled", new object[] {}));
 }
예제 #6
0
 protected static void ADisableLiveGeo()
 {
     InfobipPushInternal.GetCurrentActivity().Call("disableLiveGeo", new object[] {});
 }
예제 #7
0
 protected static bool AIsUsingCustomLocationService()
 {
     return(InfobipPushInternal.GetCurrentActivity().Call <bool>("isUsingCustomLocationService", new object[] {}));
 }
예제 #8
0
 protected static void AUseCustomLocationService(bool useCustomService)
 {
     InfobipPushInternal.GetCurrentActivity().Call("useCustomLocationService", new object[] { useCustomService });
 }
예제 #9
0
 protected static void ASetLocationUpdateTimeInterval(int minutes)
 {
     InfobipPushInternal.GetCurrentActivity().Call("setLocationUpdateTimeInterval", new object[] { minutes });
 }
예제 #10
0
 protected static int AGetLocationUpdateTimeInterval()
 {
     return(InfobipPushInternal.GetCurrentActivity().Call <int>("getLocationUpdateTimeInterval", new object[] {}));
 }