-
Notifications
You must be signed in to change notification settings - Fork 515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AVKit] Update to Xcode 9 beta 1 #2206
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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<bool> 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)] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is that under a tvOS only define ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yup
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
[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 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment
[iOS (11,0)]
is prettier (note: you're sometimes not adding a space in this diff).