Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sbytedev/net.xamarin.plugins.webbrowser

Provides a cross-platform UI for displaying the web page.
https://github.com/sbytedev/net.xamarin.plugins.webbrowser

android c-sharp ios web-browser xamarin

Last synced: about 1 month ago
JSON representation

Provides a cross-platform UI for displaying the web page.

Awesome Lists containing this project

README

        

# WebBrowser Plugin for Xamarin
![GitHub](https://img.shields.io/github/license/SByteDev/Net.Xamarin.Plugins.WebBrowser.svg)
![Nuget](https://img.shields.io/nuget/v/SByteDev.Xamarin.Plugins.WebBrowser.svg)
[![CI](https://github.com/SByteDev/Net.Xamarin.Plugins.WebBrowser/actions/workflows/ci.yml/badge.svg)](https://github.com/SByteDev/Net.Xamarin.Plugins.WebBrowser/actions/workflows/ci.yml)
[![CD](https://github.com/SByteDev/Net.Xamarin.Plugins.WebBrowser/actions/workflows/cd.yml/badge.svg)](https://github.com/SByteDev/Net.Xamarin.Plugins.WebBrowser/actions/workflows/cd.yml)
[![CodeFactor](https://www.codefactor.io/repository/github/sbytedev/net.xamarin.plugins.webbrowser/badge)](https://www.codefactor.io/repository/github/sbytedev/net.xamarin.plugins.webbrowser)

Provides a cross-platform UI for displaying the web page.

## Installation
Use [NuGet](https://www.nuget.org) package manager to install this library.

```bash
Install-Package SByteDev.Xamarin.Plugins.WebBrowser
```

## Usage
```cs
using SByteDev.Xamarin.Plugins.WebBrowser;

await WebBrowserPlugin.Instance.ShowWebPageAsync(new Uri("https://github.com"), CancellationToken.None);

```

## Implementation
### iOS
Uses default [SFSafariViewController](https://docs.microsoft.com/en-us/dotnet/api/safariservices.sfsafariviewcontroller).

### Android
Uses [CustomTabsIntent](https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsIntent) from [Xamarin.AndroidX.Browser](https://www.nuget.org/packages/Xamarin.AndroidX.Browser/).

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update the tests as appropriate.

## License
[MIT](https://choosealicense.com/licenses/mit/)