public static Task VibrateTaskAsync(this IBandNotificationManager manager, VibrationType vibrationType) { var tcs = new TaskCompletionSource <object> (); manager.VibrateAsync(vibrationType, tcs.AttachCompletionHandler()); return(tcs.Task); }
public static Task VibrateTaskAsync(this IBandNotificationManager manager, VibrationType type) { return(manager.VibrateAsync(type).AsTask()); }