How can I add on touch released event to Skiasharp

Yusuf 681 Reputation points
2021-02-21T14:45:18.033+00:00

Hi
How can I add on touch Released event in Skiasharp
I'm trying to add the event to this example

Thanks in advance

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
0 comments No comments
{count} votes

Accepted answer
  1. Cole Xia (Shanghai Wicresoft Co,.Ltd.) 6,751 Reputation points
    2021-02-22T08:21:29.727+00:00

    Hello,

    Welcome to Microsoft Q&A!

    You can detect the touch in OnTouchEffectAction method in its parent class InteractivePage .

    The method is triggering during the touch process .

       protected void OnTouchEffectAction(object sender, TouchActionEventArgs args)  
        {  
         
                   if(args.Type == TouchActionType.Released)  
                   {  
         
                   }  
         }  
    
     
    

    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful