diff --git a/src/avkit.cs b/src/avkit.cs index 80f8e5a879d5..cd98565495eb 100644 --- a/src/avkit.cs +++ b/src/avkit.cs @@ -124,6 +124,11 @@ interface AVPlayerViewController { [Export ("contentOverlayView")] UIView ContentOverlayView { get; } + [TV (11,0)] + [NoiOS] + [NullAllowed, Export ("unobscuredContentGuide")] + UILayoutGuide UnobscuredContentGuide { get; } + [NoTV] [iOS (9,0)] [Export ("allowsPictureInPicturePlayback")] @@ -134,6 +139,16 @@ interface AVPlayerViewController { [Export ("updatesNowPlayingInfoCenter")] bool UpdatesNowPlayingInfoCenter { get; set; } + [iOS (11, 0)] + [NoTV] + [Export ("entersFullScreenWhenPlaybackBegins")] + bool EntersFullScreenWhenPlaybackBegins { get; set; } + + [iOS (11, 0)] + [NoTV] + [Export ("exitsFullScreenWhenPlaybackEnds")] + bool ExitsFullScreenWhenPlaybackEnds { get; set; } + [Wrap ("WeakDelegate")] [NullAllowed] [Protocolize] @@ -175,6 +190,20 @@ interface AVPlayerViewController { [NoiOS, TV (10, 0), NoWatch, NoMac] [Export ("skipBackwardEnabled")] bool SkipBackwardEnabled { [Bind ("isSkipBackwardEnabled")] get; set; } + + // From AVPlayerViewControllerControls category + + [NoiOS, TV (11, 0), NoWatch, NoMac] + [Export ("playbackControlsIncludeTransportBar")] + bool PlaybackControlsIncludeTransportBar { get; set; } + + [NoiOS, TV (11, 0), NoWatch, NoMac] + [Export ("playbackControlsIncludeInfoViews")] + bool PlaybackControlsIncludeInfoViews { get; set; } + + [NoiOS, TV (11, 0), NoWatch, NoMac] + [Export ("customInfoViewController", ArgumentSemantic.Assign)] + UIViewController CustomInfoViewController { get; set; } } [Protocol, Model] @@ -214,6 +243,21 @@ interface AVPlayerViewControllerDelegate [Export ("playerViewController:didPresentInterstitialTimeRange:")] void DidPresentInterstitialTimeRange (AVPlayerViewController playerViewController, AVInterstitialTimeRange interstitial); + [NoiOS][NoMac] + [TV (11,0)] + [Export ("playerViewControllerShouldDismiss:")] + bool ShouldDismiss ([NullAllowed] AVPlayerViewController playerViewController); + + [NoiOS][NoMac] + [TV (11,0)] + [Export ("playerViewControllerWillBeginDismissalTransition:")] + void WillBeginDismissalTransition ([NullAllowed] AVPlayerViewController playerViewController); + + [NoiOS][NoMac] + [TV (11,0)] + [Export ("playerViewControllerDidEndDismissalTransition:")] + void DidEndDismissalTransition ([NullAllowed] AVPlayerViewController playerViewController); + [NoiOS][NoMac] [TV (9,0)] [Export ("playerViewController:willPresentInterstitialTimeRange:")] @@ -257,6 +301,21 @@ interface AVPlayerViewControllerDelegate [NoiOS, TV (10,0), NoWatch, NoMac] [Export ("playerViewController:didRejectContentProposal:")] void DidRejectContentProposal (AVPlayerViewController playerViewController, AVContentProposal proposal); + + [NoiOS, TV (11,0), NoWatch, NoMac] + [Export ("playerViewController:willTransitionToVisibilityOfTransportBar:withAnimationCoordinator:")] + void WillTransitionToVisibilityOfTransportBar ([NullAllowed] AVPlayerViewController playerViewController, bool visible, [NullAllowed] IAVPlayerViewControllerAnimationCoordinator coordinator); + } + + interface IAVPlayerViewControllerAnimationCoordinator { } + + [NoiOS, TV (11,0), NoWatch, NoMac] + [Protocol] + interface AVPlayerViewControllerAnimationCoordinator { + + [Abstract] + [Export ("addCoordinatedAnimations:completion:")] + void AddCoordinatedAnimations (Action animations, Action completion); } #else @@ -287,6 +346,10 @@ interface AVPlayerView { [Export ("contentOverlayView")] NSView ContentOverlayView { get; } + [Mac (10,13)] + [Export ("updatesNowPlayingInfoCenter")] + bool UpdatesNowPlayingInfoCenter { get; set; } + [Mac (10,9)] [Export ("actionPopUpButtonMenu")] NSMenu ActionPopUpButtonMenu { get; set; } @@ -425,6 +488,22 @@ interface AVKitMetadataIdentifier { NSString ExternalUserProfileIdentifier { get; } [Field ("AVKitMetadataIdentifierPlaybackProgress")] NSString PlaybackProgress { get; } + + [TV (11,0)] + [Field ("AVKitMetadataIdentifierExactStartDate")] + NSString ExactStartDate { get; } + + [TV (11,0)] + [Field ("AVKitMetadataIdentifierApproximateStartDate")] + NSString ApproximateStartDate { get; } + + [TV (11,0)] + [Field ("AVKitMetadataIdentifierExactEndDate")] + NSString ExactEndDate { get; } + + [TV (11,0)] + [Field ("AVKitMetadataIdentifierApproximateEndDate")] + NSString ApproximateEndDate { get; } } #endif