2021-11-07 19:42:59 +01:00
|
|
|
|
|
|
|
|
|
using Foundation;
|
2024-04-09 12:53:23 +02:00
|
|
|
|
using ShareeBike.Model.Device;
|
2021-11-07 19:42:59 +01:00
|
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
|
[assembly: Xamarin.Forms.Dependency(typeof(ShareeBike.iOS.Device.WebView))]
|
|
|
|
|
namespace ShareeBike.iOS.Device
|
2021-11-07 19:42:59 +01:00
|
|
|
|
{
|
2022-09-06 16:08:19 +02:00
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-11-07 19:42:59 +01:00
|
|
|
|
}
|