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

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