Rock Mobile Docs

Login Status Photo

v1.0

Inherits from Xamarin.Forms.ContentView

The LoginStatus view is the one you would normally use in the Flyout shell. But what if you want to just present a small icon that indicates to the user if they are logged in or not? The LoginStatusPhoto view does just that. In fact, LoginStatus uses this view itself to present the user's photo.

A number of properties allow you to specify how the profile photo will be displayed, and what photos to use if no profile picture is available or if the user is not logged in. Another set of properties allow you to specify the commands to be executed when the user interacts with the profile picture.

Properties

PropertyTypeDescription
NotLoggedInPhotoSourcestringThe image displayed if no user is logged in. Defaults to resource://Rock.Mobile.Resources.icon-person-not-logged-in.svg.
NotLoggedInPhotoFillColorColorColor applied to the "not logged in" image.
LoggedInNoPhotoSourcestringIcon displayed if user is logged in but has no profile photo. Defaults to resource://Rock.Mobile.Resources.icon-person-no-photo.png.
LoggedInNoPhotoFillColorColorColor applied to the "logged in no photo" image.
ProfilePhotoStrokeColorColorBorder color around the profile image.
ProfilePhotoStrokeWidthdoubleWidth of the border around the profile image. Defaults to 0.
ProfilePhotoCirclebooleanIf true, displays the profile photo with a circular mask. Defaults to false.
NotLoggedInCommandICommandCommand executed when the photo is tapped and user is not logged in.
NotLoggedInCommandParameterobjectParameter passed to NotLoggedInCommand.
LoggedInCommandICommandCommand executed when the photo is tapped and user is logged in.
LoggedInCommandParameterobjectParameter passed to LoggedInCommand.

Example

<Rock:LoginStatusPhoto />