Inherits from NSObject
Declared in Bit6IncomingCallPrompt.h

Overview

Used to show a nice and clean incoming call prompt that dim the entire screen while it’s visible. This class is intented to be used as a singleton instance, please use Bit6IncomingCallPrompt.sharedInstance()

Class Methods

callController

Returns the call linked to the prompt

+ (nullable Bit6CallController *)callController

Return Value

callController linked to the prompt

Declared In

Bit6IncomingCallPrompt.h

dismiss

Dismiss the Bit6IncomingCallPrompt.

+ (void)dismiss

Declared In

Bit6IncomingCallPrompt.h

setAnswerAudioHandler:

Set a block of code to be executed on the Bit6IncomingCallPrompt.answerAudio() event.

+ (void)setAnswerAudioHandler:(nullable void ( ^ ) ( Bit6CallController *_Nonnull ))answerAudioHandler

Parameters

answerAudioHandler

block of code to be executed.

Declared In

Bit6IncomingCallPrompt.h

setAnswerDataHandler:

Set a block of code to be executed on the Bit6IncomingCallPrompt.answerData() event.

+ (void)setAnswerDataHandler:(nullable void ( ^ ) ( Bit6CallController *_Nonnull ))answerDataHandler

Parameters

answerDataHandler

block of code to be executed.

Declared In

Bit6IncomingCallPrompt.h

setAnswerVideoHandler:

Set a block of code to be executed on the Bit6IncomingCallPrompt.answerVideo() event.

+ (void)setAnswerVideoHandler:(nullable void ( ^ ) ( Bit6CallController *_Nonnull ))answerVideoHandler

Parameters

answerVideoHandler

block of code to be executed.

Declared In

Bit6IncomingCallPrompt.h

setRejectHandler:

Set a block of code to be executed on the Bit6IncomingCallPrompt.reject() event.

+ (void)setRejectHandler:(nullable void ( ^ ) ( Bit6CallController *_Nonnull ))rejectHandler

Parameters

rejectHandler

block of code to be executed.

Declared In

Bit6IncomingCallPrompt.h

sharedInstance

Returns the singleton Bit6IncomingCallPrompt instance

+ (nonnull Bit6IncomingCallPrompt *)sharedInstance

Return Value

singleton Bit6IncomingCallPrompt instance

Declared In

Bit6IncomingCallPrompt.h

showForCallController:

Presents the Bit6IncomingCallPrompt.

+ (void)showForCallController:(nonnull Bit6CallController *)callController

Parameters

callController

call to be linked to the prompt

Declared In

Bit6IncomingCallPrompt.h

Instance Methods

answerAudio

Action to be used to answer an audio call

- (void)answerAudio

Declared In

Bit6IncomingCallPrompt.h

answerData

Action to be used to answer an data call

- (void)answerData

Declared In

Bit6IncomingCallPrompt.h

answerVideo

Action to be used to answer an video call

- (void)answerVideo

Declared In

Bit6IncomingCallPrompt.h

reject

Action to be used to reject a call

- (void)reject

Declared In

Bit6IncomingCallPrompt.h

setContentView:

Set a view to be shown at the center of the Bit6IncomingCallPrompt view.

- (void)setContentView:(nullable UIView *)contentView

Parameters

contentView

view to be shown in the Bit6IncomingCallPrompt.

Declared In

Bit6IncomingCallPrompt.h