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

Discussion

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

Declared In

RBActivityView.h

  isActive

Whether or not the activity indication is currently active.

@property (nonatomic, readonly) BOOL isActive

Discussion

Whether or not the activity indication is currently active.

Declared In

RBActivityView.h

  indeterminateActivityCount

The number of indeterminate activities that are currently active.

@property (nonatomic, readonly) NSUInteger indeterminateActivityCount

Discussion

The number of indeterminate activities that are currently active.

Declared In

RBActivityView.h

– startIndeterminateActivity

Starts an indeterminate activity.

- (void)startIndeterminateActivity

Discussion

Starts an indeterminate activity.

Declared In

RBActivityView.h

– stopIndeterminateActivity

Stops an indeterminate activity.

- (void)stopIndeterminateActivity

Discussion

Stops an indeterminate activity.

Declared In

RBActivityView.h

– stopAllIndeterminateActivities

Stop all indeterminate activities.

- (void)stopAllIndeterminateActivities

Discussion

Stop all indeterminate activities.

Declared In

RBActivityView.h

  determinateActivityCount

The number of determinate activities that are currently active.

@property (nonatomic, readonly) NSUInteger determinateActivityCount

Discussion

The number of determinate activities that are currently active.

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.

Discussion

Start a determinate activity with the given identifier.

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.

Discussion

Stop a determinate activity with the given identifier.

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.

Discussion

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

Declared In

RBActivityView.h