Reader small image

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

Product typeBook
Published inAug 2015
Reading LevelBeginner
Publisher
ISBN-139781784391195
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Paul Johnson
Paul Johnson
author image
Paul Johnson

Paul Johnson has been writing software since the early 1980s on machines ranging from the ZX81 and servers to his trusty Mac, and has used more languages than he can remember. He is a qualified scuba diver and college lecturer. Paul lives with his wife, kids, and pets, and listens to an inordinate amount of rock and metal on Primordial Radio. This is his third book for Packt.
Read more about Paul Johnson

Right arrow

The user interface


It is worth pointing out here that the UI is not what you would expect. Most often, with a Xamarin Forms application, the UI is constructed from the PCL. Moreover, the likes of Facebook and Twitter provide their own login user interface. This is part of the remit of OAuthAuthenticator.

This means that the PCL UI for the content page is empty, and we rely on a custom renderer to produce the user interface with a callback to the PCL once the login has been performed.

A very simple implementation of a Facebook login (as supplied with the example code for this chapter) looks similar to the following screenshot when executed. The example is using the Windows Phone emulator under the Windows directory, but the same UI is produced for Android and iOS.

The reason why the UI is the same for the login is that it is supplied by Facebook as an embedded web page through the authenticator service.

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Cross-platform UI Development with Xamarin.Forms
Published in: Aug 2015Publisher: ISBN-13: 9781784391195

Author (1)

author image
Paul Johnson

Paul Johnson has been writing software since the early 1980s on machines ranging from the ZX81 and servers to his trusty Mac, and has used more languages than he can remember. He is a qualified scuba diver and college lecturer. Paul lives with his wife, kids, and pets, and listens to an inordinate amount of rock and metal on Primordial Radio. This is his third book for Packt.
Read more about Paul Johnson