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: 17 days ago
JSON representation
Provides a cross-platform functionality to get the current User-Agent value.
- Host: GitHub
- URL: https://github.com/sbytedev/net.xamarin.plugins.useragent
- Owner: sbytedev
- License: mit
- Created: 2019-07-06T14:23:49.000Z (almost 6 years ago)
- Default Branch: develop
- Last Pushed: 2023-01-01T00:02:13.000Z (over 2 years ago)
- Last Synced: 2025-04-10T00:39:12.136Z (3 months ago)
- Topics: android, c-sharp, ios, user-agent, xamarin
- Language: C#
- Homepage:
- Size: 47.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Xamarin UserAgent Plugin


[](https://github.com/SByteDev/Net.Xamarin.Plugins.UserAgent/actions/workflows/ci.yml)
[](https://github.com/SByteDev/Net.Xamarin.Plugins.UserAgent/actions/workflows/cd.yml)
[](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/)