XAStreamingDelegate Protocol Reference

Conforms to NSObject
Declared in XAStreamingDelegate.h

Overview

Defines XAStreamingDelegate methods, in order to adapt xapp sdk a streaming player needs to implement XAStreamingDelegate methods.

Protocol Methods

– mute required method

Informs the delegate to mute it’s audio stream in order to listen for a user’s response without pausing or stopping the stream.

- (void)mute

Availability

3.12.0

Discussion

Informs the delegate to mute it’s audio stream in order to listen for a user’s response without pausing or stopping the stream.

Declared In

XAStreamingDelegate.h

– unmute required method

Informs the delegate that the monitor has finished listening for the user and now the delegate can unmute it’s audio stream

- (void)unmute

Availability

3.12.0

Discussion

Informs the delegate that the monitor has finished listening for the user and now the delegate can unmute it’s audio stream

Declared In

XAStreamingDelegate.h

– stop required method

Informs the delegate that the monitor has exceeded it’s designated time slot, either because the user responded to the ad or a timeout occurred during the user interaction. This requires the delegate to stop it’s stream until the resume function is called.

- (void)stop

Availability

3.12.0

Discussion

Informs the delegate that the monitor has exceeded it’s designated time slot, either because the user responded to the ad or a timeout occurred during the user interaction. This requires the delegate to stop it’s stream until the resume function is called.

Declared In

XAStreamingDelegate.h

– resume required method

The XAStreamingMonitor doesn’t call resume unless it previously called the stop method. The resume function informs the delegate that the monitor has completed a user interaction and the delegate needs to resume the stream.

- (void)resume

Availability

3.12.0

Discussion

The XAStreamingMonitor doesn’t call resume unless it previously called the stop method. The resume function informs the delegate that the monitor has completed a user interaction and the delegate needs to resume the stream.

Declared In

XAStreamingDelegate.h

Session Management

– onXappStarted

Alerted when XAPP has successfully started

- (void)onXappStarted

Availability

3.12.0

Discussion

Alerted when XAPP has successfully started

Declared In

XAStreamingDelegate.h

– onFailedXappStart:

Informs the delegate XAPP has failed to start and supplies the error that occured

- (void)onFailedXappStart:(NSError *)error

Parameters

error

The error that occured during startup

Availability

3.12.0

Discussion

Informs the delegate XAPP has failed to start and supplies the error that occured

Declared In

XAStreamingDelegate.h