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.

    FUIMultiUserPasscodeController is using a table view to display a list of users. The default UITableViewCell displays the user image, user name, and user info.

    Declaration

    Swift

    func registerUserTableViewCell(_ tableView: UITableView, controller: FUIMultiUserPasscodeController)
  • Developers can use this function to customize the UITableViewCell displayed for user list.

    The default UITableViewCell provided will display the user image, user name, and user info. SAPFiori provides a default implementation of this function which returns nil.

    Declaration

    Swift

    func userCell(_ userId: String, tableView: UITableView, controller: FUIMultiUserPasscodeController) -> UITableViewCell?

    Parameters

    userId

    The user ID for the user in the user list.

    tableView

    The UITableView for the list picker.

    controller

    The FUIMultiUserOnboardingController.

    Return Value

    A developer provided UITableViewCell with user information. Or, nil, to use the default provided by the FUIMultiUserPasscodeController.