FUIMultiUserPasscodeControllerDataSource
public protocol FUIMultiUserPasscodeControllerDataSource : AnyObject
This is the data source for providing the onboarded user list for the app on the device.
This data source is to be used in FUIMultiUserPasscodeController.
-
The list of onboarded users.
Declaration
Swift
var onboardedUsers: [FUIUser] { get } -
The ID of the current user in the users list.
Declaration
Swift
var currentUserId: String { get set } -
Developers can use this function to register custom table view cell to be displayed in the user list when list picker table view will appear.
FUIMultiUserPasscodeControlleris using a table view to display a list of users. The defaultUITableViewCelldisplays the user image, user name, and user info.Declaration
Swift
func registerUserTableViewCell(_ tableView: UITableView, controller: FUIMultiUserPasscodeController) -
Developers can use this function to customize the
UITableViewCelldisplayed for user list.The default
UITableViewCellprovided will display the user image, user name, and user info. SAPFiori provides a default implementation of this function which returnsnil.Declaration
Swift
func userCell(_ userId: String, tableView: UITableView, controller: FUIMultiUserPasscodeController) -> UITableViewCell?Parameters
userIdThe user ID for the user in the user list.
tableViewThe
UITableViewfor the list picker.controllerThe
FUIMultiUserOnboardingController.Return Value
A developer provided
UITableViewCellwith user information. Or, nil, to use the default provided by theFUIMultiUserPasscodeController.