SDWebImageIndicator

@protocol SDWebImageIndicator <NSObject>

A protocol to custom the indicator during the image loading. All of these methods are called from main queue.

  • The view associate to the indicator.

    Declaration

    Objective-C

    @required
    @property (readonly, strong, nonatomic, nonnull) UIView *indicatorView;

    Swift

    var indicatorView: UIView { get }

    Return Value

    The indicator view

  • Start the animating for indicator.

    Declaration

    Objective-C

    - (void)startAnimatingIndicator;

    Swift

    func startAnimatingIndicator()
  • Stop the animating for indicator.

    Declaration

    Objective-C

    - (void)stopAnimatingIndicator;

    Swift

    func stopAnimatingIndicator()
  • Update the loading progress (0-1.0) for indicator. Optional

    Declaration

    Objective-C

    - (void)updateIndicatorProgress:(double)progress;

    Swift

    optional func updateProgress(_ progress: Double)

    Parameters

    progress

    The progress, value between 0 and 1.0