public async Task <INotificationResult> Notify(INotificationOptions options) { return(await Task.Run(() => { switch (_androidOptions.Style) { case NotificationStyle.Notifications: return _notificationBuilder.Notify(_activity, options); case NotificationStyle.Snackbar: return _snackbarNotification.Notify(_activity, options); default: case NotificationStyle.Default: if (Android.OS.Build.VERSION.SdkInt >= Android.OS.BuildVersionCodes.Lollipop) { return _notificationBuilder.Notify(_activity, options); } else { return _snackbarNotification.Notify(_activity, options); } } })); }