CallbackTableViewCellFactory
public class CallbackTableViewCellFactory : NSObject
CallbackTableViewCellFactory is a representation of class responsible for managing UITableViewCell classes for corresponding Callback class in FRUI SDK’s Authentication View Controller. CallbackTableViewCellFactory can be used to customize FRUI SDK’s Authentication View Controller by implementing UITableViewCell and FRUICallbackTableViewCell protocol.
Usage Example:
CallbackTableViewCellFactory.shared.registerCallbackTableViewCell(callbackType: "NameCallback", cellClass: CustomNameCallbackCell.self, nibName: "CustomNameCallbackCell")
Using CallbackTableViewCellFactory, FRUI Authentication View Controller renders UI with registered FRUICallbackTableViewCell for speficied Callback type. Above example will render CustomNameCallbackCell for NameCallback in FRUI’s Authentication View Controller.
-
Shared instance of CallbackTableViewCellFactory
Declaration
Swift
public static let shared: CallbackTableViewCellFactory -
An array of FRUICallbackTableViewCell classes mapped with Callback’s type value as in String
Declaration
Swift
public var talbeViewCellForCallbacks: [String : FRUICallbackTableViewCell.Type] -
An array of Nib file names mapped with Callback’s type value as in String
Declaration
Swift
public var tableViewCellNibForCallbacks: [String : String]
-
Registers new FRUICallbackTableViewCell class with Callback type value, and Nib file name; Nib file must be in same Bundle with FRUICallbackTableViewCell.
Declaration
Swift
public func registerCallbackTableViewCell(callbackType: String, cellClass: FRUICallbackTableViewCell.Type, nibName: String)Parameters
callbackTypeString value of Callback class
cellClassCustom UITableViewCell that understands and renders Callback, and implements FRUICallbackTableViewCell
nibNameNib file name for the cellCalss
View on GitHub