Instance Property

willStartPlayback

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

Declaration

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

Discussion

The block takes no parameters and returns no value. Use this block to perform actions in response to the playing of sounds.

See Also

Responding to Playback

var didFinishPlayback: (() -> Void)?

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