Index

RBActivityView.h

Protocols

Classes


RBActivityView

A view that displays activity indication. There are two types of activity - determinate (with progress) and non-determinate (without progress).

Properties

An optional delegate to be informed of the state of activity indication.
public weak delegate RBActivityViewDelegate? { get set }

Whether or not the activity indication is currently active.
public isActive Bool { get }

The number of indeterminate activities that are currently active.
public indeterminateActivityCount int { get }

The number of determinate activities that are currently active.
public determinateActivityCount int { get }

Functions

Start a determinate activity with the given identifier.
@param identifier : The unique identifier for the activity.
- (void)startDeterminateActivityWithID:(nonnull NSString *)identifier;

Stop a determinate activity with the given identifier.
@param identifier : The unique identifier for the activity.
- (void)stopDeterminateActivityWithID:(nonnull NSString *)identifier;

Update the progress of the determinate activity with the given identifier.
@param progress : The current progress value from 0 to 1.
@param text : The message to display that describes the current state of the activity.
@param identifier : The unique identifier for the activity.
- (void)setDeterminateActivityProgress:(float)progress withText:(nullable NSString *)text withID:(nonnull NSString *)identifier;