In this section, we will begin by adding the Xamarin Media Plugin NuGet package to our solution. The Xamarin Media Plugin is essentially a cross-platform library that you can use to gain access to the device camera and photo album by writing a few lines of code.
Let's start by adding the Xamarin Media Plugin Nuget package to our PhotoLibrary solution by performing the following steps:
- Firstly, ensure that you have the PhotoLibrary solution currently open in the Visual Studio for Mac IDE.
- Then, right-click on the Packages folder and choose the Add Packages... menu option: