Skip to content

Commit

Permalink
[AVKit] Update to Xcode 9 beta 1
Browse files Browse the repository at this point in the history
  • Loading branch information
dalexsoto committed Jun 11, 2017
1 parent 9356b53 commit d40152f
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions src/avkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand All @@ -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]
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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:")]
Expand Down Expand Up @@ -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<bool> completion);
}

#else
Expand Down Expand Up @@ -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; }
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d40152f

Please sign in to comment.