private async Task ExitOnRequest() { bool accept = await DisplayAlert("Warning", "Are you sure you want to exit?", "Yes", "No"); if (accept) { ICloser closer = DependencyService.Get <ICloser>(); if (closer != null) { closer.Close(); } } }
public override void Close() => _closer?.Close();
public new void Dispose() => _closer?.Close();