public static Task VibrateTaskAsync(this IBandNotificationManager manager, VibrationType vibrationType)
        {
            var tcs = new TaskCompletionSource <object> ();

            manager.VibrateAsync(vibrationType, tcs.AttachCompletionHandler());
            return(tcs.Task);
        }
Esempio n. 2
0
 public static Task VibrateTaskAsync(this IBandNotificationManager manager, VibrationType type)
 {
     return(manager.VibrateAsync(type).AsTask());
 }