ErrorController
@MainActor
public class ErrorController : BaseController
This is the base class for FUIMultiUserTransactionErrorController and FUIMultiUserConnectionErrorController.
Developeres should not use this class directly.
-
The error banner view.
Declaration
Swift
@MainActor public let errorBannerView: FUIBannerMessageView -
The action button.
Declaration
Swift
@MainActor public let actionButton: FUIButton -
The “Close” button on the navigation bar.
This is a
FUIBarButtonIteminitialized with the localized title “Close”.Declaration
Swift
@MainActor public let closeButton: FUIBarButtonItem -
This handler is invoked when the close button is tapped.
Declaration
Swift
@MainActor public var onCloseHandler: ((UIViewController) -> Void)? -
This property indicates if the close button is to be hidden or not.
The default is
false, which means not to hide the close button.Declaration
Swift
@MainActor public var hidesCloseButton: Bool -
The title to be displayed in the error banner view.
The default title is localized string “Sync Failed”.
Declaration
Swift
@MainActor public var errorBannerTitle: String!
-
Subclasses can override this to anchor the top of
actionButtonto a different view (e.g.detailMessageLabel). Defaults tomessageLabel.Declaration
Swift
@objc @MainActor open var actionButtonTopAnchorView: UIView { get } -
Undocumented
Declaration
Swift
@objc @MainActor open var actionButtonTopPadding: CGFloat { get } -
Undocumented
Declaration
Swift
@objc @MainActor open var actionButtonHorizontalPadding: CGFloat { get } -
Undocumented
Declaration
Swift
@objc @MainActor open var actionButtonHeight: CGFloat { get } -
Called by external clients to customize the line break mode of
actionButton. Once this method is called, the SDK will no longer overridelineBreakModeinternally.Note
There is no need to synchronously modifytitleLabel.numberOfLines.FUIButtonis backed byUIButton.Configuration, and the number of visible lines is effectively driven by thelineBreakModesemantics (.byTruncatingTail→ single line,.byWordWrapping/.byCharWrapping→ multi-line). SettingnumberOfLinesto any value other than0or1has no effect onFUIButton.Declaration
Swift
@MainActor public func setActionButtonLineBreakMode(_ mode: NSLineBreakMode)