public static Task SendMessageTaskAsync(this IBandNotificationManager manager, NSUuid tileID, string title, string body, NSDate timeStamp, MessageFlags flags)
        {
            var tcs = new TaskCompletionSource <object> ();

            manager.SendMessageAsync(tileID, title, body, timeStamp, flags, tcs.AttachCompletionHandler());
            return(tcs.Task);
        }
Example #2
0
 public static Task SendMessageTaskAsync(this IBandNotificationManager manager, Java.Util.UUID tileId, string title, string body, Java.Util.Date date, MessageFlags flags)
 {
     return(manager.SendMessageAsync(tileId, title, body, date, flags).AsTask());
 }