-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"[Intents] Update bindings for Xcode 13.0 betas 1 through 5"
- Loading branch information
1 parent
3fc6b06
commit d1ce9ff
Showing
11 changed files
with
446 additions
and
408 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
using System; | ||
using CoreGraphics; | ||
using Foundation; | ||
using ObjCRuntime; | ||
using System.Runtime.Versioning; | ||
|
||
#nullable enable | ||
|
||
namespace Intents | ||
{ | ||
|
||
#if !TVOS | ||
public partial class INPerson | ||
{ | ||
|
||
#if !NET | ||
[Introduced (PlatformName.iOS, 15,0)] | ||
[Introduced (PlatformName.MacOSX, 12,0)] | ||
[Introduced (PlatformName.WatchOS, 8,0)] | ||
#else | ||
[SupportedOSPlatform ("ios15.0")] | ||
[SupportedOSPlatform ("macos12.0")] | ||
#endif //!NET | ||
public enum INPersonType { | ||
Me = 0, | ||
ContactSuggestion = 1, | ||
} | ||
|
||
#if !NET | ||
[Introduced (PlatformName.iOS, 15,0)] | ||
[Introduced (PlatformName.MacOSX, 12,0)] | ||
[Introduced (PlatformName.WatchOS, 8,0)] | ||
#else | ||
[SupportedOSPlatform ("ios15.0")] | ||
[SupportedOSPlatform ("macos12.0")] | ||
#endif //!NET | ||
public INPerson (INPersonHandle personHandle, NSPersonNameComponents? nameComponents, string? displayName, INImage? image, string? contactIdentifier, string? customIdentifier, bool isMe, INPersonSuggestionType suggestionType) : | ||
this (personHandle, nameComponents, displayName, image, contactIdentifier, customIdentifier, isMe, suggestionType, INPersonType.Me) | ||
{ | ||
} | ||
|
||
#if !NET | ||
[Introduced (PlatformName.iOS, 15,0)] | ||
[Introduced (PlatformName.MacOSX, 12,0)] | ||
[Introduced (PlatformName.WatchOS, 8,0)] | ||
#else | ||
[SupportedOSPlatform ("ios15.0")] | ||
[SupportedOSPlatform ("macos12.0")] | ||
#endif //!NET | ||
public INPerson (INPersonHandle personHandle, NSPersonNameComponents? nameComponents, string? displayName, INImage? image, string? contactIdentifier, string? customIdentifier, bool isMe, INPersonSuggestionType suggestionType, INPersonType personType) : base (NSObjectFlag.Empty) | ||
{ | ||
switch (personType) { | ||
case INPersonType.Me: | ||
InitializeHandle (InitWithMe (personHandle, nameComponents, displayName, image, contactIdentifier, customIdentifier, isMe, suggestionType), | ||
"initWithPersonHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:isMe:suggestionType:"); | ||
break; | ||
case INPersonType.ContactSuggestion: | ||
InitializeHandle (InitWithContactSuggestion (personHandle, nameComponents, displayName, image, contactIdentifier, customIdentifier, isMe, suggestionType), | ||
"initWithPersonHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:isContactSuggestion:suggestionType:"); | ||
break; | ||
default: | ||
throw new ArgumentException (nameof (personType)); | ||
} | ||
} | ||
} | ||
#endif // !TVOS | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.