I have a Xamarin Forms app where one of the pages s being rendered natively on Android.
public class ConnectIBeaconRenderer : PageRenderer , IBeaconConsumer
{
//How to implement IBeaconConsumer here?
}
As above how do I implement IBeaconConsumer inside that page renderer? When Implementing in an activity all you have to implement is
public void OnIBeaconServiceConnect()
{
//Only needs implementing this when inside an activity.
}
In my case as I stated I am not on an activity but on a Page Renderer. How do I implement the remaining members of IBeaconConsumer?
public Context ApplicationContext
{
get
{
throw new NotImplementedException();
}
}
public bool BindService(Intent intent, IServiceConnection serviceConnection, Bind flags)
{
throw new NotImplementedException();
}
public void UnbindService(IServiceConnection p0)
{
throw new NotImplementedException();
}
Any help is appreciated. Thanks
Aucun commentaire:
Enregistrer un commentaire