AWSLexAudioPlayer Class Reference

Inherits from NSObject
Declared in AWSLexInteractionKit.h
AWSLexInteractionKit.m

Overview

Wrapper to AVAudioPLayer class.

  errorBlock

Set it to handle error.

@property (nonatomic) void ( ^ ) ( NSError *error ) errorBlock

Declared In

AWSLexInteractionKit.h

  completionBlock

Set it to handle successful audio play.

@property (nonatomic) void ( ^ ) ( void ) completionBlock

Declared In

AWSLexInteractionKit.h

  preparedBlock

Set it to handle when audio has been prepared to play.

@property (nonatomic) void ( ^ ) ( void ) preparedBlock

Declared In

AWSLexInteractionKit.h

– start

Start playing sound.

- (void)start

Discussion

When audio is prepared to play, preparedBlock will get called if it is set. Once audio is successfully played audio, completionBlock will get called if it is set. Otherwise errorBlock is get called.

Declared In

AWSLexInteractionKit.h