Skip to content

Commit

Permalink
[AVKit] Update to Xcode 9 Beta 2 (#2250)
Browse files Browse the repository at this point in the history
  • Loading branch information
dalexsoto authored and spouliot committed Jun 28, 2017
1 parent 34e1d89 commit 73064fa
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions src/avkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -506,5 +506,75 @@ interface AVKitMetadataIdentifier {
NSString ApproximateEndDate { get; }
}

[TV (11,0), iOS (11,0)]
[BaseType (typeof (UIView))]
interface AVRoutePickerView {

[Export ("initWithFrame:")]
IntPtr Constructor (CGRect frame);

[NullAllowed, Export ("delegate", ArgumentSemantic.Weak)]
IAVRoutePickerViewDelegate Delegate { get; set; }

[Export ("activeTintColor", ArgumentSemantic.Assign), NullAllowed]
UIColor ActiveTintColor { get; set; }

[NoiOS]
[Export ("routePickerButtonStyle", ArgumentSemantic.Assign)]
AVRoutePickerViewButtonStyle RoutePickerButtonStyle { get; set; }
}

[TV (11,0), NoiOS]
[Native]
public enum AVRoutePickerViewButtonStyle : nint {
System,
Plain,
Custom,
}
#else

[Mac (10,13)]
[BaseType (typeof (NSView))]
interface AVRoutePickerView {

[Export ("initWithFrame:")]
IntPtr Constructor (CGRect frame);

[Export ("delegate", ArgumentSemantic.Weak), NullAllowed]
IAVRoutePickerViewDelegate Delegate { get; set; }

[Export ("routePickerButtonColorForState:")]
NSColor GetRoutePickerButtonColor (AVRoutePickerViewButtonState state);

[Export ("setRoutePickerButtonColor:forState:")]
void SetRoutePickerButtonColor ([NullAllowed] NSColor color, AVRoutePickerViewButtonState state);

[Export ("routePickerButtonBordered")]
bool RoutePickerButtonBordered { [Bind ("isRoutePickerButtonBordered")] get; set; }
}

[Mac (10,13)]
[Native]
public enum AVRoutePickerViewButtonState : nint {
Normal,
NormalHighlighted,
Active,
ActiveHighlighted
}

#endif

interface IAVRoutePickerViewDelegate { }

[TV (11,0), iOS (11,0), Mac (10,13)]
[Protocol, Model]
[BaseType (typeof (NSObject))]
interface AVRoutePickerViewDelegate {

[Export ("routePickerViewWillBeginPresentingRoutes:")]
void WillBeginPresentingRoutes (AVRoutePickerView routePickerView);

[Export ("routePickerViewDidEndPresentingRoutes:")]
void DidEndPresentingRoutes (AVRoutePickerView routePickerView);
}
}

0 comments on commit 73064fa

Please sign in to comment.