Instance Property

didFinishPlayback

A block called by SceneKit when playback of the player’s audio source has completed.

Declaration

@property(nonatomic, copy) void (^didFinishPlayback)(void);

Discussion

The block takes no parameters and returns no value. Use this block to perform actions when a sound finishes playing. For example, after a line of spoken character dialogue finishes playing, you might start playing another line of dialogue.

See Also

Responding to Playback

willStartPlayback

A block called by SceneKit when playback of the player’s audio source is about to begin.