Importing photos is something that is carried out for both the platforms, so we will create a photo importer interface. The interface will have two get methods—one that supports paging and one that gets photos with specified filenames. Both methods will also take a quality argument, but we will only use the one in the iOS photo importer. The quality argument will be an enum with two options—High and Low. However, before we create the interface, we will create a model class that should represent an imported photo using the following steps:
- Create a new folder named Models in the GalleryApp project.
- Create a new class named Photo in the recently created folder:
public class Photo
{
public string Filename { get; set; }
public byte[] Bytes { get; set; }
}
Now that we have created the model class, we can continue to create the interface. The interface will have two get methods—one for getting photos in a specific...