-
Notifications
You must be signed in to change notification settings - Fork 520
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MapKit] Implement Xcode 16.0 beta 1-6 changes. (#20893)
Note: there were no changes in beta 2, beta 3, beta 4, beta 5 or beta 6.
- Loading branch information
1 parent
afb561b
commit e2c0cb3
Showing
23 changed files
with
500 additions
and
583 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,42 @@ | ||
#if !WATCH | ||
|
||
using System; | ||
using System.Runtime.InteropServices; | ||
using Foundation; | ||
using ObjCRuntime; | ||
using MapKit; | ||
|
||
#nullable enable | ||
|
||
namespace MapKit { | ||
/// <summary>This enum is used to select how to initialize a new instance of a <see cref="MKAddressFilter" />.</summary> | ||
public enum MKAddressFilterConstructorOption { | ||
/// <summary>The <c>options</c> parameter passed to the constructor are inclusive.</summary> | ||
Include, | ||
/// <summary>The <c>options</c> parameter passed to the constructor are exclusive.</summary> | ||
Exclude, | ||
} | ||
|
||
public partial class MKAddressFilter { | ||
/// <summary>Create a new <see cref="MKAddressFilter" /> with the specified address filter options.</summary> | ||
/// <param name="options">The address filter options to use.</param> | ||
/// <param name="constructorOption">Specify whether the <paramref name="options" /> argument is including or excluding the given options.</param> | ||
/// <returns>A new <see cref="MKAddressFilter" /> instance with the specified address filter options.</returns> | ||
public MKAddressFilter (MKAddressFilterOption options, MKAddressFilterConstructorOption constructorOption) | ||
: base (NSObjectFlag.Empty) | ||
{ | ||
switch (constructorOption) { | ||
case MKAddressFilterConstructorOption.Include: | ||
InitializeHandle (_InitIncludingOptions (options)); | ||
break; | ||
case MKAddressFilterConstructorOption.Exclude: | ||
InitializeHandle (_InitExcludingOptions (options)); | ||
break; | ||
default: | ||
throw new ArgumentOutOfRangeException (nameof (constructorOption), constructorOption, "Invalid enum value."); | ||
} | ||
} | ||
} | ||
} | ||
|
||
#endif |
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.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.