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.useragent

Provides a cross-platform functionality to get the current User-Agent value.
https://github.com/sbytedev/net.xamarin.plugins.useragent

android c-sharp ios user-agent xamarin

Last synced: about 1 month ago
JSON representation

Provides a cross-platform functionality to get the current User-Agent value.

Awesome Lists containing this project

README

        

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

Provides a cross-platform functionality to get the current [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent) value.

## Installation

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

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

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

var userAgent = await UserAgentPlugin.Instance.GetUserAgentAsync(CancellationToken.None);
```

## 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/)