mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-13 22:06:29 +01:00
24 lines
563 B
C#
24 lines
563 B
C#
|
using TINK.Model.Device;
|
|||
|
using Xamarin.Forms;
|
|||
|
using TINK.iOS.Device;
|
|||
|
using UIKit;
|
|||
|
using Foundation;
|
|||
|
|
|||
|
[assembly: Dependency(typeof(ExternalBrowseService))]
|
|||
|
namespace TINK.iOS.Device
|
|||
|
{
|
|||
|
public class ExternalBrowseService : IExternalBrowserService
|
|||
|
{
|
|||
|
/// <summary> Opens an external browser. </summary>
|
|||
|
/// <param name="p_strUrl">Url to open.</param>
|
|||
|
public void OpenUrl(string p_strUrl)
|
|||
|
{
|
|||
|
var l_oUrl = NSUrl.FromString(p_strUrl);
|
|||
|
if (l_oUrl == null)
|
|||
|
return;
|
|||
|
|
|||
|
UIApplication.SharedApplication.OpenUrl(l_oUrl);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|