SyncController
public class SyncController : BaseController
This view controller is to display the progress of the sync.
This view contains a progress bar, a title label, and a message label.
- The progress bar shows the current sync progress. Developer should use
progressBar.progressBar.progress
to update the progress. - The title label has a default localized title “Sync In Progress”. Developer can use
titleLabel.text
property to change the default title. - The message label has a default localized message “Please wait for the sync to complete to proceed to the application. It may take a few of seconds.”.
Developer can use
messageLabel.text
to change the default message.
Also, there is a “Cancel” button on the navigation bar. Developer should set the onCancelHandler
property to process user cancel action.
Theming
Supported fixed font UILabel
class paths:
fdlFUIFeedbackScreen_SyncController_titleLabel
fdlFUIFeedbackScreen_SyncController_messageLabel
Supported fixed font UILabel
properties:
font-size: (Size)
font-name: (Font Name)
font-color: (Color)
Supported progress bar class paths:
fdlFUIFeedbackScreen_SyncController_progressBar
Supported progress bar properties:
progress-tint-color: (Color)
track-tint-color: (Color)
Supported UIBarButtonItem
class paths:
fdlFUIFeedbackScreen_SyncController_cancelButton
Supported UIBarButtonItem
properties:
image: (Image Name)
background-tint-color: (Color)
-
The progress bar to show the sync progress.
Declaration
Swift
public let progressBar: UIProgressView
-
The “Cancel” button on the navigation bar.
This is a
FUIBarButtonItem
initialized as thecancel
system item type.Declaration
Swift
public let cancelButton: FUIBarButtonItem
-
This handler is invoked when the cancel button is tapped.
Declaration
Swift
public var onCancelHandler: ((UIViewController) -> Void)?
-
This property indicates if the canel button is to be hidden or not.
The default is
false
, which means not to hide the cancel button.Declaration
Swift
public var hidesCancelButton: Bool