SharePlaySuspension
@available(iOS 15.0, tvOS 15.0, *)
@objc(BMPSharePlaySuspension)
public protocol SharePlaySuspension
A representation of a temporary break in participation.
See SharePlayApi.beginSuspension(for:)
method for details on use.
-
Reasons for suspensions. See
AVCoordinatedPlaybackSuspension.Reason
for pre-defined values or useSharePlaySuspension.Reason("custom")
to create a custom reason.Declaration
Swift
typealias Reason = AVCoordinatedPlaybackSuspension.Reason
-
The reason for the suspension. This will be communicated to other participants while coordination is suspended.
Declaration
Swift
var reason: Reason { get }
-
The begin date of the suspension.
Declaration
Swift
var beginDate: Date { get }