sharee.bike-App/LastenradBayern/ShareeBike.iOS/Device/WebView.cs
2024-04-09 12:53:23 +02:00

18 lines
No EOL
474 B
C#

using Foundation;
using ShareeBike.Model.Device;
[assembly: Xamarin.Forms.Dependency(typeof(ShareeBike.iOS.Device.WebView))]
namespace ShareeBike.iOS.Device
{
public class WebView : IWebView
{
/// <summary> Clears the cookie cache for all web views. </summary>
public void ClearCookies()
{
NSHttpCookieStorage CookieStorage = NSHttpCookieStorage.SharedStorage;
foreach (var cookie in CookieStorage.Cookies)
CookieStorage.DeleteCookie(cookie);
}
}
}