Contents

beginSuspension(for:)

Tells the coordinator to stop sending playback commands temporarily when the playback object disconnects from the group activity.

Declaration

func beginSuspension(for suspensionReason: AVCoordinatedPlaybackSuspension.Reason) -> AVCoordinatedPlaybackSuspension

Parameters

  • suspensionReason:

    The reason for the suspension. Indicate a system-defined value or a custom suspension reason.

Return Value

A suspension object.

Discussion

End a suspension by calling its end() or end(proposingNewTime:) method.

See Also

Suspending state coordination