Skip to content

Commit

Permalink
Fixed new bindings as per review:
Browse files Browse the repository at this point in the history
* Added BindAs for those properties that are NSNumber -> bool
* Added BindAs for those properties that are NSNumber -> int
* Added missing iOS attr.
  • Loading branch information
mandel-macaque committed Jun 9, 2017
1 parent f239dec commit 17c8474
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/corespotlight.cs
Original file line number Diff line number Diff line change
Expand Up @@ -994,31 +994,35 @@ interface CSSearchableItemAttributeSet : NSCopying, NSSecureCoding {

[iOS (11,0), NoTV, Mac (10, 11)]
[NullAllowed, Export ("userCreated", ArgumentSemantic.Strong)]
[return: BindAs (typeof (bool?))]
NSNumber IsUserCreated { [Bind ("isUserCreated")] get; set; }

[iOS (11, 0), NoTV, Mac (10, 11)]
[NullAllowed, Export ("userOwned", ArgumentSemantic.Strong)]
[return: BindAs (typeof (bool?))]
NSNumber IsUserOwned { [Bind ("isUserOwned")] get; set; }

[iOS (11, 0), NoTV, Mac (10, 11)]
[NullAllowed, Export ("userCurated", ArgumentSemantic.Strong)]
[return: BindAs (typeof (bool?))]
NSNumber IsUserCurated { [Bind ("isUserCurated")] get; set; }

[iOS (11, 0), NoTV, Mac (10, 11)]
[NullAllowed, Export ("rankingHint", ArgumentSemantic.Strong)]
[return: BindAs (typeof (int?))]
NSNumber RankingHint { get; set; }

// CSSearchableItemAttributeSet_CSItemProvider

[NoTV, Mac (10, 11)]
[iOS (11, 0), NoTV, Mac (10, 11)]
[NullAllowed, Export ("providerDataTypeIdentifiers", ArgumentSemantic.Copy)]
string[] ProviderDataTypeIdentifiers { get; set; }

[NoTV, Mac (10, 11)]
[iOS (11, 0), NoTV, Mac (10, 11)]
[NullAllowed, Export ("providerFileTypeIdentifiers", ArgumentSemantic.Copy)]
string[] ProviderFileTypeIdentifiers { get; set; }

[NoTV, Mac (10, 11)]
[iOS (11, 0), NoTV, Mac (10, 11)]
[NullAllowed, Export ("providerInPlaceFileTypeIdentifiers", ArgumentSemantic.Copy)]
string[] ProviderInPlaceFileTypeIdentifiers { get; set; }
}
Expand Down

0 comments on commit 17c8474

Please sign in to comment.