Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

tapping into shake motion with xamarin forms

$
0
0

I'd like to setup hockeyapp to trigger the feedback upon shake gesture in Ios as listed here
https://support.hockeyapp.net/kb/general-account-management-2/invoking-feedback-ui-with-a-shake-gesture

Add the following code to your BaseView.cs file:

public override void MotionEnded(UIEventSubType motion, UIEvent event)
{
if (motion == UIEventSubType.MotionShake)
{
BITHockeyManager.SharedHockeyManager.FeedbackManager.ShowFeedbackComposeViewWithGeneratedFeedback();
}
}

But how do I tap into the base view class in xamarin forms?


Viewing all articles
Browse latest Browse all 89864

Trending Articles