sharee.bike-App/Meinkonrad/TINK.iOS/Device/WebView.cs

18 lines
456 B
C#
Raw Normal View History

2021-11-07 19:42:59 +01:00

using Foundation;
using TINK.Model.Device;
[assembly: Xamarin.Forms.Dependency(typeof(TINK.iOS.Device.WebView))]
namespace TINK.iOS.Device
{
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
}