mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-14 14:26:28 +01:00
18 lines
519 B
C#
18 lines
519 B
C#
|
|
|||
|
using Foundation;
|
|||
|
using TINK.Model.Device;
|
|||
|
|
|||
|
[assembly: Xamarin.Forms.Dependency(typeof(TINK.iOS.Device.WebView))]
|
|||
|
namespace TINK.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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|