JWPlayerViewControllerFullScreenDelegate
@objc
public protocol JWPlayerViewControllerFullScreenDelegate
Fullscreen events within the JWPlayerViewController are routed to this delegate.
-
Called before the player is enlarged to the size of the screen.
Declaration
Swift
func playerViewControllerWillGoFullScreen(_ controller: JWPlayerViewController) -> JWFullScreenViewController?Parameters
controllerThe JWPlayerViewController emitting the event.
Return Value
The
JWFullScreenViewControllerthat will be used for full screen. If nil is returned, will use the defaultJWFullScreenViewController. -
Called after the player has enlarged to the size of the screen.
Declaration
Swift
func playerViewControllerDidGoFullScreen(_ controller: JWPlayerViewController)Parameters
controllerThe JWPlayerViewController emitting the event.
-
Called before the player dismisses full screen, and shrinks back to its normal size.
Declaration
Swift
func playerViewControllerWillDismissFullScreen(_ controller: JWPlayerViewController)Parameters
controllerThe JWPlayerViewController emitting the event.
-
Called after the player dismisses full screen, and shrinks back to its normal size.
Declaration
Swift
func playerViewControllerDidDismissFullScreen(_ controller: JWPlayerViewController)Parameters
controllerThe JWPlayerViewController emitting the event.
-
Called before the player dismisses full screen with the reason for the exit.
Declaration
Swift
@objc optional func playerViewControllerWillDismissFullScreen(_ controller: JWPlayerViewController, reason: JWFullScreenExitReason)Parameters
controllerThe JWPlayerViewController emitting the event.
reasonThe reason why fullscreen was exited.
-
Called after the player dismisses full screen with the reason for the exit.
Declaration
Swift
@objc optional func playerViewControllerDidDismissFullScreen(_ controller: JWPlayerViewController, reason: JWFullScreenExitReason)Parameters
controllerThe JWPlayerViewController emitting the event.
reasonThe reason why fullscreen was exited.