https://github.com/sbytedev/net.mvvmcross.plugins.useragent
Provides a cross-platform functionality to get the current User-Agent value.
https://github.com/sbytedev/net.mvvmcross.plugins.useragent
android c-sharp ios mvvmcross user-agent xamarin
Last synced: 3 months ago
JSON representation
Provides a cross-platform functionality to get the current User-Agent value.
- Host: GitHub
- URL: https://github.com/sbytedev/net.mvvmcross.plugins.useragent
- Owner: sbytedev
- License: mit
- Created: 2019-07-05T19:22:59.000Z (about 6 years ago)
- Default Branch: develop
- Last Pushed: 2022-12-01T13:00:59.000Z (over 2 years ago)
- Last Synced: 2025-04-10T00:39:14.197Z (3 months ago)
- Topics: android, c-sharp, ios, mvvmcross, user-agent, xamarin
- Language: C#
- Homepage:
- Size: 78.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MvvmCross UserAgent Plugin


[](https://github.com/SByteDev/Net.MvvmCross.Plugins.UserAgent/actions/workflows/ci.yml)
[](https://github.com/SByteDev/Net.MvvmCross.Plugins.UserAgent/actions/workflows/cd.yml)
[](https://www.codefactor.io/repository/github/sbytedev/net.mvvmcross.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.MvvmCross.Plugins.UserAgent
```## Usage
```cs
using SByteDev.MvvmCross.Plugins.UserAgent;var userAgent = await Mvx.IoCProvider.Resolve().GetUserAgentAsync(CancellationToken.None);
```## Implementation
Based on [Xamarin UserAgent Plugin](https://github.com/SByteDev/Net.Xamarin.Plugins.UserAgent).## 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/)