public override void OnReceive(Context context, Intent intent) { bool bootCompleted; string action = intent.Action; Log.Info(TAG, $"Recieved action {action}, user unlocked: "); if (Build.VERSION.SdkInt > BuildVersionCodes.M) { bootCompleted = Intent.ActionLockedBootCompleted == action; } else { bootCompleted = Intent.ActionBootCompleted == action; } if (!bootCompleted) { return; } GeofencingHelper.StartGeofencingService(); }
static GeofencingHelper() { Current = new GeofencingHelper(); }
public void StopLocationUpdates() { GeofencingHelper.StopGeofencingService(); }
public void StartGeofencingUpdates() { GeofencingHelper.StartGeofencingService(); }