Beispiel #1
0
        /// <summary>
        /// Starts up MLFoundObjectsToolkit.
        /// </summary>
        void Start()
        {
#if PLATFORM_LUMIN
            MLFoundObjectsStarterKit.Start();
            queryTimer = new Timer(queryFrequency);
#endif
        }
Beispiel #2
0
        /// <summary>
        /// Requests a new query if one is not currently active.
        /// </summary>
        /// <returns>Will return true if the request was successful.</returns>
        public bool QueryFoundObjects()
        {
#if PLATFORM_LUMIN
            if (MLFoundObjects.IsStarted)
            {
                MLFoundObjectsStarterKit.QueryFoundObjectsAsync(queryFilter, HandleOnFoundObjects);
                return(true);
            }
#endif

            return(false);
        }
 /// <summary>
 /// Clean up.
 /// </summary>
 void OnDestroy()
 {
     #if PLATFORM_LUMIN
     MLFoundObjectsStarterKit.Stop();
     #endif
 }
 /// <summary>
 /// Starts up MLFoundObjectsToolkit.
 /// </summary>
 void Start()
 {
     #if PLATFORM_LUMIN
     MLFoundObjectsStarterKit.Start();
     #endif
 }