public static Task SetPagesTaskAsync(this IBandTileManager manager, BandPageData[] pageData, NSUuid tileId) { var tcs = new TaskCompletionSource <object> (); manager.SetPagesAsync(pageData, tileId, tcs.AttachCompletionHandler()); return(tcs.Task); }
public static async Task <bool> SetPagesTaskAsync(this IBandTileManager manager, Java.Util.UUID tileId, params PageData[] pageDatas) { return((bool)await manager.SetPagesAsync(tileId, pageDatas).AsTask()); }