In this section, we will take a look at how to create the LocationService class that will inherit from our ILocationService interface, and implement the underlying instance methods that we declared within our interface class. We did this to help us retrieve and continually listen for changes within the GPS location coordinates which will be used by our ViewModels and ContentPages (Views).
Let's start by creating the LocationService class for our TrackMyWalks app by performing the following steps:
- Ensure that the TrackMyWalks solution is open within the Visual Studio for Mac IDE.
- Next, right-click on the Services folder and choose Add|New File... from the pop-up menu.
- Then, choose the