Protocol
ADProgressHUDConfigurable
public protocol ADProgressHUDConfigurable
Used to indicator a time-consuming operation is in progress.
Requirements
timeoutBlock
var timeoutBlock: (() -> Void)?
Called when task timeout.
show(timeout:)
func show(timeout: TimeInterval)
Show ProgressHUD.
Parameters
Name | Type | Description |
---|---|---|
timeout | TimeInterval |
The duration before the task is timeout. If set 0, view will not hide automatic. |
hide()
func hide()
Dismiss ProgressHUD.