Example #1
0
        /// <summary>
        /// Called when touch enters map
        /// </summary>
        /// <param name="touchPoints">List of all touched points</param>
        private bool OnTouchEntered(List <Geometries.Point> touchPoints)
        {
            // Sanity check
            if (touchPoints.Count == 0)
            {
                return(false);
            }

            var args = new TouchedEventArgs(touchPoints);

            TouchEntered?.Invoke(this, args);

            return(args.Handled);
        }
Example #2
0
        /// <summary>
        /// Called when touch enters map
        /// </summary>
        /// <param name="touchPoints">List of all touched points</param>
        private bool OnTouchEntered(List <Geometries.Point> touchPoints)
        {
            // Sanity check
            if (touchPoints.Count == 0)
            {
                return(false);
            }

            var args = new TouchedEventArgs(touchPoints);

            TouchEntered?.Invoke(this, args);

            if (args.Handled)
            {
                return(true);
            }

            // We have an interaction with the screen, so stop all animations
            Navigator.StopRunningAnimation();

            return(true);
        }
Example #3
0
 public virtual void OnTouchEntered()
 {
     TouchEntered.Invoke(this);
 }
Example #4
0
 public virtual void OnTouchEntered()
 {
     IsTouchInside = true;
     TouchEntered.Invoke(this);
 }