Contents

didFinishPlayback

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

Declaration

var didFinishPlayback: (() -> Void)? { get set }

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