Ejemplo n.º 1
0
        /// <summary>
        /// Starts scanning for beacons.
        /// Also initialises the system if required.
        /// </summary>
        public void StartScanning()
        {
#if !UNITY_EDITOR
#if UNITY_IOS
            EstimoteUnityIOS.StartScanning(BeaconsUUID);
#elif UNITY_ANDROID
            EstimoteUnityAndroid.StartScanning(BeaconsUUID);
#endif
#endif
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Stops scanning for beacons.
        /// No more updates will come through once this has been called until StartScanning is called again.
        /// </summary>
        public void StopScanning()
        {
#if !UNITY_EDITOR
#if UNITY_IOS
            EstimoteUnityIOS.StopScanning();
#elif UNITY_ANDROID
            EstimoteUnityAndroid.StopScanning();
#endif
#endif
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Starts scanning for beacons.
        /// Also initialises the system if required.
        /// </summary>
        public void StartScanning()
        {
            if (ScanPeriodMillis < 200)
            {
                ScanPeriodMillis = 200;
            }
            if (WaitTimeMillis < 0)
            {
                WaitTimeMillis = 0;
            }

                        #if !UNITY_EDITOR
                        #if UNITY_IOS
            EstimoteUnityIOS.StartScanning(BeaconsUUID);
                        #elif UNITY_ANDROID
            EstimoteUnityAndroid.StartScanning(BeaconsUUID, ScanPeriodMillis, WaitTimeMillis);
                        #endif
                        #endif
        }