O'Reilly logo

Mastering Xamarin UI Development - Second Edition by Steven F. Daniel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating and implementing the TwitterWebService interface

In this section, we will create the ITwitterWebService class, which will essentially contain various instance methods that will be used by our TwitterWebService class. The advantage of creating an ITwitterWebService class is that it's much easier to add additional class instance methods that will be used by other classes that utilize this interface.

Let's start by creating the ITwitterWebService interface for our TrackMyWalks app by performing the following steps:

  1. Right-click on the Services folder, and choose Add | New File... from the pop-up menu, as you did in the section entitled Creating and implementing the LocationService interface within Chapter 7, Adding Location-based Features ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required