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

Is it possible to use EventListener from Android through Interface in main App?

$
0
0

I tried to make it work modifying the official example (from docs.microsoft.com: the path: /en-us/xamarin/xamarin-forms/app-fundamentals/dependency-service/introduction), but seems like interface demands a value to return and the following doesn't work:
public interface IRetrieveDataService
{
RetrieveData();
}

The EventListner I'd like to use through Interface is described in this video from youtube.com: the path: /watch?v=OC-dy3YFLoo
Source code is in the video's description.

Sorry for paths, I can't post links yet :(


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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