Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 29 additions & 2 deletions src/carplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ interface CPAlertAction : NSSecureCoding {
[Export ("initWithTitle:style:handler:")]
NativeHandle Constructor (string title, CPAlertActionStyle style, Action<CPAlertAction> handler);

[NoWatch, NoTV, NoMac, iOS (16,0)]
[Export ("initWithTitle:color:handler:")]
NativeHandle Constructor (string title, UIColor color, Action<CPAlertAction> handler);

[Export ("title")]
string Title { get; }

Expand All @@ -218,6 +222,11 @@ interface CPAlertAction : NSSecureCoding {

[Export ("handler", ArgumentSemantic.Copy)]
Action<CPAlertAction> Handler { get; }

[NullAllowed]
[NoWatch, NoTV, NoMac, iOS (16,0)]
[Export ("color", ArgumentSemantic.Copy)]
UIColor Color { get; }
}

delegate void CPBarButtonHandler (CPBarButton button);
Expand Down Expand Up @@ -1736,9 +1745,13 @@ interface CPNowPlayingImageButton
interface CPPointOfInterest : NSSecureCoding
{
[Export ("initWithLocation:title:subtitle:summary:detailTitle:detailSubtitle:detailSummary:pinImage:")]
[DesignatedInitializer]
NativeHandle Constructor (MKMapItem location, string title, [NullAllowed] string subtitle, [NullAllowed] string summary, [NullAllowed] string detailTitle, [NullAllowed] string detailSubtitle, [NullAllowed] string detailSummary, [NullAllowed] UIImage pinImage);

[iOS (16,0)]
[Export ("initWithLocation:title:subtitle:summary:detailTitle:detailSubtitle:detailSummary:pinImage:selectedPinImage:")]
[DesignatedInitializer]
NativeHandle Constructor (MKMapItem location, string title, [NullAllowed] string subtitle, [NullAllowed] string summary, [NullAllowed] string detailTitle, [NullAllowed] string detailSubtitle, [NullAllowed] string detailSummary, [NullAllowed] UIImage pinImage, [NullAllowed] UIImage selectedPinImage);

[Export ("location", ArgumentSemantic.Strong)]
MKMapItem Location { get; set; }

Expand Down Expand Up @@ -1771,6 +1784,20 @@ interface CPPointOfInterest : NSSecureCoding

[NullAllowed, Export ("userInfo", ArgumentSemantic.Strong)]
NSObject UserInfo { get; set; }

[iOS (16, 0)]
[Static]
[Export ("pinImageSize")]
CGSize PinImageSize { get; }

[iOS (16, 0)]
[Static]
[Export ("selectedPinImageSize")]
CGSize SelectedPinImageSize { get; }

[iOS (16, 0)]
[NullAllowed, Export ("selectedPinImage", ArgumentSemantic.Strong)]
UIImage SelectedPinImage { get; set; }
}

interface ICPPointOfInterestTemplateDelegate { }
Expand All @@ -1795,7 +1822,7 @@ interface CPPointOfInterestTemplateDelegate
[NoWatch, NoTV, NoMac, iOS (14,0)]
[BaseType (typeof (CPTemplate))]
[DisableDefaultCtor]
interface CPPointOfInterestTemplate
interface CPPointOfInterestTemplate : CPBarButtonProviding
{
[Export ("initWithTitle:pointsOfInterest:selectedIndex:")]
[DesignatedInitializer]
Expand Down
9 changes: 0 additions & 9 deletions tests/xtro-sharpie/api-annotations-dotnet/iOS-CarPlay.todo

This file was deleted.

9 changes: 0 additions & 9 deletions tests/xtro-sharpie/iOS-CarPlay.todo

This file was deleted.