Is there a way to find the Path to iOS's Contacts circular thumbnail image?

ChrisVardonChrisVardon GBMember ✭✭

I have used Xamarin.Contacts to Get a Contact's Thumbnail using the UIImage image = contact.GetThumbnail(). From this I am using the code below to get the path of the thumbnail, however when I check to see if the file exists, it doesn't. I'm guessing I'm using the wrong parameter for the GetFolderPath() method?

    private string GetPath(UIImage image, Contact contact)
        {
            var filePathDir = string.Empty;
            var filepath = string.Empty;

            if (image != null)
            {
                filePathDir = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
                filepath = System.IO.Path.Combine(filePathDir, contact.Id);

                if (System.IO.File.Exists(filepath))
                {

                }
            }
            return filepath;
        }
Sign In or Register to comment.