Creates an action that tells an audio node to pause playback.
SDKs
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Sprite
Kit
Declaration
class func pause() -> SKAction
Return Value
A new action object.
Discussion
This action may only be executed on an SKAudio
object. The audio is paused, and if restarted, resumes at where it was paused.
This action is not reversible.