Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Cross-platform UI Development with Xamarin.Forms

You're reading from  Cross-platform UI Development with Xamarin.Forms

Product type Book
Published in Aug 2015
Publisher
ISBN-13 9781784391195
Pages 330 pages
Edition 1st Edition
Languages
Author (1):
Paul Johnson Paul Johnson
Profile icon Paul Johnson

Table of Contents (22) Chapters

Cross-platform UI Development with Xamarin.Forms
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
1. In the Beginning… 2. Let's Get the Party Started 3. Making It Look Pretty and Logging In 4. Making Your Application Portable 5. Data, Generics, and Making Sense of Information 6. A View to a Kill 7. Connect Me to Your Other Services 8. What a Bind! 9. Addressing the Issue 10. This is the World Calling… 11. A Portable Settings Class 12. Xamarin Forms Labs 13. Social Media into the Mix 14. Bringing It All Together Index

Chapter 9. Addressing the Issue

It would not be expected that Xamarin Forms would have access to the device-specific capabilities and facilities, such as the camera, audio, and GPS. Why would it? Xam. Forms is (as it has been said) a UI abstraction layer. The thing about any UI abstraction layer is that from time to time, it needs to render information from the platform to the user.

In this chapter, you will learn how to incorporate the system-specific address book in our app.

Addressing issues


There are two typical modes of operation for a messenger application:

  • Use only the contacts on your device

  • Use only the contacts on the service being used

The reasons for this are never clear, and with the exception of privacy concerns, there really should be no reason why you cannot have access to both.

As far as we're concerned, we have to consider that we have to use something very platform-specific in terms of the address book, and for social media, we need to use various web services as well as some form of an authenticator system.

Xamarin does have a number of components available, which will help with most aspects, and we can certainly make use of them. There are also the likes of Xamarin.Forms.Labs that will help. There is little point in reinventing the wheel, so I will show you how to use these components as well. Xamarin.Forms.Labs is an extension library designed to fill the gaps not supported by Xamarin Forms. It is free and available via NuGet.

Irrespective of the...

Summary


Using your own address book in the messenger app is not difficult. Certainly, gathering the information from the device is not difficult either. In this chapter, we looked at the different ways of how to access and use the address book.

In the next chapter, we will expand on this and look at how to implement maps, GPS, and push notifications.

lock icon The rest of the chapter is locked
You have been reading a chapter from
Cross-platform UI Development with Xamarin.Forms
Published in: Aug 2015 Publisher: ISBN-13: 9781784391195
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}