示例#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[] {}));
 }