Conforms to NSObject
Declared in WaitIndicatorProtocol.h

Overview

Certain activities processed by C2Call SDK components might use a reasonable amount of time, which should be notified to the user.

For example capture a video and processing the video for submission might take a few seconds, up to a few minutes, dependent on the video length.

In this case, the user will be automatically notified by the SDK classes, by calling waitIndicatorWithTitle:andWaitMessage: delegate method.

The default behavior of C2CallAppDelegate class is to instantiate an SCWaitIndicatorController to display the wait message.

You may overwrite the default behavior, by overwriting the corresponding C2CallAppDelegate methods.

Instance Methods

waitIndicatorConnectingToService

Show the default connecting to service message

- (void)waitIndicatorConnectingToService

Declared In

WaitIndicatorProtocol.h

waitIndicatorGetPriceForNumber

Show the default get price for number message

- (void)waitIndicatorGetPriceForNumber

Declared In

WaitIndicatorProtocol.h

waitIndicatorStop

Removes the Wait Dialog from the screen

- (void)waitIndicatorStop

Declared In

WaitIndicatorProtocol.h

waitIndicatorWithTitle:

Show the Wait Dialog with title and the default wait message

- (void)waitIndicatorWithTitle:(id)title

Declared In

WaitIndicatorProtocol.h

waitIndicatorWithTitle:andWaitMessage:

Show a Wait Dialog with a title and a wait message.

- (void)waitIndicatorWithTitle:(id)aTitle andWaitMessage:(id)aMessage

Discussion

Default Implementation: -(void) waitIndicatorWithTitle:(NSString ) aTitle andWaitMessage:(NSString ) aMessage { dispatch_async(dispatch_get_main_queue(), ^{ if (waitIndicator) { [waitIndicator hide]; self.waitIndicator = nil; }

        waitIndicator = [SCWaitIndicatorController controllerWithTitle:aTitle andWaitMessage:aMessage];
        waitIndicator.autoHide = YES;
        [waitIndicator show:self.mainScreenController.view];
    });
}

Declared In

WaitIndicatorProtocol.h