Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@TBertuzzi
Created November 28, 2019 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TBertuzzi/2e568d95f9c5a6b176a9c263ef6fde69 to your computer and use it in GitHub Desktop.
Save TBertuzzi/2e568d95f9c5a6b176a9c263ef6fde69 to your computer and use it in GitHub Desktop.
Shiny
using System;
using System.Threading.Tasks;
using Shiny.Locations;
namespace ExemploShiny.Delegates
{
public class LocationDelegates : IGeofenceDelegate, IGpsDelegate
{
public Task OnReading(IGpsReading reading)
{
//Aqui voce Pode Implementar um Delagate para o GPS
return null;
}
public async Task OnStatusChanged(GeofenceState newStatus, GeofenceRegion region)
{
//Aqui voce Pode implementar um Delegate pra Geofence
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment