RBActivityView Class Reference

Inherits from UIView
Declared in RBActivityView.h

Overview

A view that displays activity indication.

There are two types of activity - determinate (with progress) and non-determinate (without progress).

  delegate

An optional delegate to be informed of the state of activity indication.

@property (nonatomic, weak, nullable) id<RBActivityViewDelegate> delegate

Declared In

RBActivityView.h

  isActive

Whether or not the activity indication is currently active.

@property (nonatomic, readonly) BOOL isActive

Declared In

RBActivityView.h

  indeterminateActivityCount

The number of indeterminate activities that are currently active.

@property (nonatomic, readonly) NSInteger indeterminateActivityCount

Declared In

RBActivityView.h

– startIndeterminateActivity

Starts an indeterminate activity.

- (void)startIndeterminateActivity

Declared In

RBActivityView.h

– stopIndeterminateActivity

Stops an indeterminate activity.

- (void)stopIndeterminateActivity

Declared In

RBActivityView.h

– stopAllIndeterminateActivities

Stop all indeterminate activities.

- (void)stopAllIndeterminateActivities

Declared In

RBActivityView.h

  determinateActivityCount

The number of determinate activities that are currently active.

@property (nonatomic, readonly) NSInteger determinateActivityCount

Declared In

RBActivityView.h

– startDeterminateActivityWithID:

Start a determinate activity with the given identifier.

- (void)startDeterminateActivityWithID:(nonnull NSString *)identifier

Parameters

identifier

The unique identifier for the activity.

Declared In

RBActivityView.h

– stopDeterminateActivityWithID:

Stop a determinate activity with the given identifier.

- (void)stopDeterminateActivityWithID:(nonnull NSString *)identifier

Parameters

identifier

The unique identifier for the activity.

Declared In

RBActivityView.h

– setDeterminateActivityProgress:withText:withID:

Update the progress of the determinate activity with the given identifier.

- (void)setDeterminateActivityProgress:(float)progress withText:(nullable NSString *)text withID:(nonnull NSString *)identifier

Parameters

progress

The current progress value from 0 to 1.

text

The message to display that describes the current state of the activity.

identifier

The unique identifier for the activity.

Declared In

RBActivityView.h