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

How to access the Android Activity onUserInteraction() method from Xamarin.Forms

$
0
0

Hello,
I'm using XF especialy for Android development and I need to launch a login page if the user doesn't interact with the app for more than X minutes.
For that I need to track the user interaction across the app. I searched and I found that that I need to override a method onUserInteraction in Activity class of the Android API. But I don't know how to get access to that method from XF.
I tried a custom renderer PageRenderer for class Page but I still don't know how to access the Activity class. Does anyone have any ideea?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>