public async Task <bool> AddTileAsync(BandTile tile) { bool result = false; #if __ANDROID__ result = await ActivityWrappedActionExtensions.WrapActionAsync(activity => { return(Native.AddTileTaskAsync(activity, tile.ToNative())); }); #elif __IOS__ try { await Native.AddTileTaskAsync(tile.ToNative()); result = true; } catch (BandException ex) { if (ex.Code == (int)BandNSErrorCodes.UserDeclinedTile) { result = false; } else { throw; } } #elif WINDOWS_PHONE_APP result = await Native.AddTileAsync(tile.ToNative()); #endif return(result); }