diff --git a/.gitmodules b/.gitmodules
index 59a025aaefa7..5bcca96fd48c 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -5,7 +5,7 @@
[submodule "external/mono"]
path = external/mono
url = ../../mono/mono.git
- branch = mono-4.6.0-branch
+ branch = mono-4.8.0-branch
[submodule "external/fsharp"]
path = external/fsharp
url = ../../fsharp/fsharp.git
diff --git a/Make.config b/Make.config
index 3d5b3cb7b0e3..b58402a58409 100644
--- a/Make.config
+++ b/Make.config
@@ -47,10 +47,10 @@ IOS_PACKAGE_VERSION_REV=$(word 3, $(subst ., ,$(IOS_PACKAGE_VERSION)))
IOS_PACKAGE_VERSION_BUILD=$(IOS_COMMIT_DISTANCE)
IOS_PACKAGE_UPDATE_ID=$(shell printf "2%02d%02d%02d%03d" $(IOS_PACKAGE_VERSION_MAJOR) $(IOS_PACKAGE_VERSION_MINOR) $(IOS_PACKAGE_VERSION_REV) $(IOS_PACKAGE_VERSION_BUILD))
-# Xcode 8.2
-XCODE_VERSION=8.2
-XCODE_URL=http://xamarin-storage/bot-provisioning/Xcode_8.2.xip
-XCODE_DEVELOPER_ROOT=/Applications/Xcode82.app/Contents/Developer
+# Xcode 8.3
+XCODE_VERSION=8.3
+XCODE_URL=http://xamarin-storage/bot-provisioning/Xcode_8.3.xip
+XCODE_DEVELOPER_ROOT=/Applications/Xcode83.app/Contents/Developer
# Minimum Mono version
MIN_MONO_VERSION=4.8.0.269
@@ -58,23 +58,23 @@ MAX_MONO_VERSION=4.8.99
MIN_MONO_URL=http://bosstoragemirror.blob.core.windows.net/wrench/mono-4.8.0/e5/e51aa0a7043a8185e264d6332ac7bc1f8f87cd39/MonoFramework-MDK-4.8.0.269.macos10.xamarin.universal.pkg
# Minimum Xamarin Studio version
-MIN_XAMARIN_STUDIO_URL=https://files.xamarin.com/~rolf/XamarinStudio-6.1.0.4373.dmg
+MIN_XAMARIN_STUDIO_URL=https://bosstoragemirror.blob.core.windows.net/wrench/monodevelop-lion-cycle8-mlaunch-xcode83-fix-clone/77/776f2e6f2c16460204aa92f566caacf2da49259c/XamarinStudio-6.1.5.3.dmg
MIN_XAMARIN_STUDIO_VERSION=6.1.0.4373
-MAX_XAMARIN_STUDIO_VERSION=6.3.0.9999
+MAX_XAMARIN_STUDIO_VERSION=6.4.0.9999
# Minimum CMake version
MIN_CMAKE_URL=https://cmake.org/files/v3.6/cmake-3.6.2-Darwin-x86_64.dmg
MIN_CMAKE_VERSION=2.8.8
# Minimum OSX versions
-MIN_OSX_BUILD_VERSION=10.11
-MIN_OSX_VERSION_FOR_IOS=10.11
-MIN_OSX_VERSION_FOR_MAC=10.11
+MIN_OSX_BUILD_VERSION=10.12
+MIN_OSX_VERSION_FOR_IOS=10.10
+MIN_OSX_VERSION_FOR_MAC=10.10
-IOS_SDK_VERSION=10.2
+IOS_SDK_VERSION=10.3
OSX_SDK_VERSION=10.12
-WATCH_SDK_VERSION=3.1
-TVOS_SDK_VERSION=10.1
+WATCH_SDK_VERSION=3.2
+TVOS_SDK_VERSION=10.2
MIN_IOS_SDK_VERSION=6.0
MIN_OSX_SDK_VERSION=10.7
diff --git a/Versions-ios.plist.in b/Versions-ios.plist.in
index 4ed2cfca9c52..e791e2c4fb7c 100644
--- a/Versions-ios.plist.in
+++ b/Versions-ios.plist.in
@@ -22,6 +22,7 @@
10.0
10.1
10.2
+ 10.3
tvOS
@@ -30,6 +31,7 @@
9.2
10.0
10.1
+ 10.2
watchOS
@@ -39,6 +41,7 @@
2.2
3.0
3.1
+ 3.2
RecommendedXcodeVersion
@@ -99,6 +102,8 @@
com.apple.watchkit
2.0
+ com.apple.intents-service
+ 3.2
Features
diff --git a/external/Touch.Unit b/external/Touch.Unit
index 71c2c44f926e..16c5eddc9ed6 160000
--- a/external/Touch.Unit
+++ b/external/Touch.Unit
@@ -1 +1 @@
-Subproject commit 71c2c44f926e8f6bcf37c8f5823ed7e841aabc59
+Subproject commit 16c5eddc9ed6906a21037c5a4501ba104faba948
diff --git a/external/opentk b/external/opentk
index 2335bde3612c..042c8ab805af 160000
--- a/external/opentk
+++ b/external/opentk
@@ -1 +1 @@
-Subproject commit 2335bde3612c0cfcc1f0057d494c2ce681b54df4
+Subproject commit 042c8ab805af759a544354a971154b63452669c7
diff --git a/mk/xamarin.mk b/mk/xamarin.mk
index 4d00e83cf485..8d7681c0678d 100644
--- a/mk/xamarin.mk
+++ b/mk/xamarin.mk
@@ -1,5 +1,5 @@
ifdef ENABLE_XAMARIN
-NEEDED_MACCORE_VERSION := 0334305b8a8e829d6f27aadbe6b4784b11c19d9e
+NEEDED_MACCORE_VERSION := 4f5fc1f377ba37915c58e02b5f2c7477cf4a52d4
NEEDED_MACCORE_BRANCH := d15-1
MACCORE_DIRECTORY := maccore
diff --git a/msbuild/Xamarin.Mac.Tasks.Core/Tasks/DetectSdkLocationsTaskBase.cs b/msbuild/Xamarin.Mac.Tasks.Core/Tasks/DetectSdkLocationsTaskBase.cs
index 0eaa8332c551..43869d1b8c6b 100644
--- a/msbuild/Xamarin.Mac.Tasks.Core/Tasks/DetectSdkLocationsTaskBase.cs
+++ b/msbuild/Xamarin.Mac.Tasks.Core/Tasks/DetectSdkLocationsTaskBase.cs
@@ -49,6 +49,11 @@ public string SdkVersion {
get; set;
}
+ [Output]
+ public bool IsXcode8 {
+ get; set;
+ }
+
#endregion Outputs
public override bool Execute ()
@@ -60,6 +65,8 @@ public override bool Execute ()
EnsureXamarinSdkRoot ();
EnsureSdkPath ();
+ IsXcode8 = AppleSdkSettings.XcodeVersion.Major >= 8;
+
return !Log.HasLoggedErrors;
}
diff --git a/msbuild/Xamarin.Mac.Tasks/Xamarin.Mac.Common.targets b/msbuild/Xamarin.Mac.Tasks/Xamarin.Mac.Common.targets
index 5a9ab2b99598..2ba9bc03a9a4 100644
--- a/msbuild/Xamarin.Mac.Tasks/Xamarin.Mac.Common.targets
+++ b/msbuild/Xamarin.Mac.Tasks/Xamarin.Mac.Common.targets
@@ -357,13 +357,21 @@ Copyright (C) 2014 Xamarin. All rights reserved.
-
+
+
+
+
+
+
+
@@ -453,6 +461,7 @@ Copyright (C) 2014 Xamarin. All rights reserved.
+
diff --git a/msbuild/Xamarin.iOS.Tasks.Core/Tasks/DetectSdkLocationsTaskBase.cs b/msbuild/Xamarin.iOS.Tasks.Core/Tasks/DetectSdkLocationsTaskBase.cs
index 886a2c55fe0a..dd8d7b257e06 100644
--- a/msbuild/Xamarin.iOS.Tasks.Core/Tasks/DetectSdkLocationsTaskBase.cs
+++ b/msbuild/Xamarin.iOS.Tasks.Core/Tasks/DetectSdkLocationsTaskBase.cs
@@ -69,6 +69,11 @@ public bool SdkIsSimulator {
get; set;
}
+ [Output]
+ public bool IsXcode8 {
+ get; set;
+ }
+
#endregion Outputs
public PlatformFramework Framework {
@@ -92,6 +97,8 @@ public override bool Execute ()
SdkIsSimulator = (architectures & (TargetArchitecture.i386 | TargetArchitecture.x86_64)) != 0;
+ IsXcode8 = AppleSdkSettings.XcodeVersion.Major >= 8;
+
EnsureAppleSdkRoot ();
EnsureXamarinSdkRoot ();
switch (Framework) {
diff --git a/msbuild/Xamarin.iOS.Tasks.Core/Xamarin.iOS.Common.targets b/msbuild/Xamarin.iOS.Tasks.Core/Xamarin.iOS.Common.targets
index 2a39672aeb4d..54d85944f83c 100644
--- a/msbuild/Xamarin.iOS.Tasks.Core/Xamarin.iOS.Common.targets
+++ b/msbuild/Xamarin.iOS.Tasks.Core/Xamarin.iOS.Common.targets
@@ -529,12 +529,20 @@ Copyright (C) 2013-2016 Xamarin. All rights reserved.
Inputs="@(_SmeltedMetal)" Outputs="$(DeviceSpeficicIntermediateOutputPath)metal\default.metal-ar">
-
+
+
+
+
+
+
+
@@ -589,6 +597,7 @@ Copyright (C) 2013-2016 Xamarin. All rights reserved.
+
@@ -1396,7 +1405,7 @@ Copyright (C) 2013-2016 Xamarin. All rights reserved.
-
+
@@ -1501,7 +1510,7 @@ Copyright (C) 2013-2016 Xamarin. All rights reserved.
-
+
GetFunctionData ()
}
);
+ data.Add (
+ new FunctionData {
+ Comment = " // IntPtr func (Vector3, Vector3i, bool, nint, IntPtr)",
+ Prefix = "simd__",
+ Variants = Variants.NonStret,
+ ReturnType = Types.IntPtr,
+ Parameters = new ParameterData[] {
+ new ParameterData { TypeData = Types.Vector3 },
+ new ParameterData { TypeData = Types.Vector3i },
+ new ParameterData { TypeData = Types.Bool },
+ new ParameterData { TypeData = Types.NInt },
+ new ParameterData { TypeData = Types.IntPtr },
+ },
+ }
+ );
+
data.Add (
new FunctionData {
Comment = " // void func (Vector3, Vector3)",
@@ -1428,6 +1444,21 @@ static IEnumerable GetFunctionData ()
);
// Required for ModelIO
+ data.Add (
+ new FunctionData {
+ Comment = " // IntPtr func (Vector3, bool, nint, IntPtr)",
+ Prefix = "simd__",
+ Variants = Variants.NonStret,
+ ReturnType = Types.IntPtr,
+ Parameters = new ParameterData[] {
+ new ParameterData { TypeData = Types.Vector3 },
+ new ParameterData { TypeData = Types.Bool },
+ new ParameterData { TypeData = Types.NInt },
+ new ParameterData { TypeData = Types.IntPtr },
+ },
+ }
+ );
+
data.Add (
new FunctionData {
Comment = " // IntPtr func (Vector3, Vector2i, bool, IntPtr, IntPtr)",
@@ -1505,6 +1536,24 @@ static IEnumerable GetFunctionData ()
}
);
+ data.Add (
+ new FunctionData {
+ Comment = " // IntPtr func (Vector3, Vector2i, bool, bool, bool, nint, IntPtr)",
+ Prefix = "simd__",
+ Variants = Variants.NonStret,
+ ReturnType = Types.IntPtr,
+ Parameters = new ParameterData[] {
+ new ParameterData { TypeData = Types.Vector3 },
+ new ParameterData { TypeData = Types.Vector2i },
+ new ParameterData { TypeData = Types.Bool },
+ new ParameterData { TypeData = Types.Bool },
+ new ParameterData { TypeData = Types.Bool },
+ new ParameterData { TypeData = Types.NInt },
+ new ParameterData { TypeData = Types.IntPtr },
+ },
+ }
+ );
+
data.Add (
new FunctionData {
Comment = " // IntPtr func (Vector3, Vector2i, int, bool, nint, IntPtr)",
@@ -1522,6 +1571,21 @@ static IEnumerable GetFunctionData ()
}
);
+ data.Add (
+ new FunctionData {
+ Comment = " // IntPtr func (Vector3, Vector2i, nint, IntPtr)",
+ Prefix = "simd__",
+ Variants = Variants.NonStret,
+ ReturnType = Types.IntPtr,
+ Parameters = new ParameterData[] {
+ new ParameterData { TypeData = Types.Vector3 },
+ new ParameterData { TypeData = Types.Vector2i },
+ new ParameterData { TypeData = Types.NInt },
+ new ParameterData { TypeData = Types.IntPtr },
+ },
+ }
+ );
+
data.Add (
new FunctionData {
Comment = " // IntPtr func (IntPtr, Vector2d, Vector2d, Vector2i, bool)",
diff --git a/src/AVFoundation/AVCaptureVideoPreviewLayer.cs b/src/AVFoundation/AVCaptureVideoPreviewLayer.cs
new file mode 100644
index 000000000000..10f9b3f59f1d
--- /dev/null
+++ b/src/AVFoundation/AVCaptureVideoPreviewLayer.cs
@@ -0,0 +1,37 @@
+#if !WATCH && !TVOS
+
+using System;
+
+using XamCore.Foundation;
+using XamCore.CoreFoundation;
+using XamCore.ObjCRuntime;
+using XamCore.AudioToolbox;
+
+namespace XamCore.AVFoundation {
+ public partial class AVCaptureVideoPreviewLayer {
+
+ public enum InitMode {
+ WithConnection,
+ [iOS (8,0), Mac (10,2)]
+ WithNoConnection,
+ }
+
+ public AVCaptureVideoPreviewLayer (AVCaptureSession session, InitMode mode) : base (NSObjectFlag.Empty)
+ {
+ switch (mode) {
+ case InitMode.WithConnection:
+ InitializeHandle (InitWithConnection (session));
+ break;
+ case InitMode.WithNoConnection:
+ InitializeHandle (InitWithNoConnection (session));
+ break;
+ default:
+ throw new ArgumentException (nameof (mode));
+ }
+ }
+
+ public AVCaptureVideoPreviewLayer (AVCaptureSession session) : this (session, InitMode.WithConnection) {}
+ }
+}
+
+#endif
\ No newline at end of file
diff --git a/src/AVFoundation/Enums.cs b/src/AVFoundation/Enums.cs
index 9fa7276094cf..b9cd4a88da41 100644
--- a/src/AVFoundation/Enums.cs
+++ b/src/AVFoundation/Enums.cs
@@ -158,7 +158,7 @@ public enum AVCaptureWhiteBalanceMode : nint {
#if !MONOMAC || !XAMCORE_4_0
[Flags]
- [NoTV, NoWatch]
+ [NoTV]
[iOS (4,0)]
[Native]
[Availability (Deprecated = Platform.iOS_6_0)]
@@ -562,8 +562,7 @@ public enum AVAudioEnvironmentDistanceAttenuationModel : nint {
Linear = 3
}
- [NoWatch]
- [NoTV]
+ [TV (10,2), NoWatch]
[Native]
public enum AVQueuedSampleBufferRenderingStatus : nint {
Unknown, Rendering, Failed
@@ -780,6 +779,33 @@ public enum AVPlayerViewControllerSkippingBehavior : nint {
SkipItem
}
+ [TV (10,2), Mac (10,12,4), iOS (10,3), NoWatch]
+ [Native]
+ public enum AVContentKeyRequestStatus : nint {
+ Requesting,
+ Received,
+ Renewed,
+ Retried,
+ Cancelled,
+ Failed
+ }
+
+ [TV (10, 2), Mac (10, 12, 4), iOS (10, 3), NoWatch]
+ public enum AVContentKeyRequestRetryReason {
+ [Field ("AVContentKeyRequestRetryReasonTimedOut")]
+ TimedOut,
+ [Field ("AVContentKeyRequestRetryReasonReceivedResponseWithExpiredLease")]
+ ReceivedResponseWithExpiredLease,
+ [Field ("AVContentKeyRequestRetryReasonReceivedObsoleteContentKey")]
+ ReceivedObsoleteContentKey,
+ }
+
+ [TV (10, 2), Mac (10, 12, 4), iOS (10, 3), NoWatch]
+ public enum AVContentKeySystem {
+ [Field ("AVContentKeySystemFairPlayStreaming")]
+ FairPlayStreaming,
+ }
+
// Convience enum for native string values
[NoWatch]
public enum AVAssetExportSessionPreset {
diff --git a/src/AudioUnit/AudioUnit.cs b/src/AudioUnit/AudioUnit.cs
index e39c9fa164e4..eebb6ba672cd 100644
--- a/src/AudioUnit/AudioUnit.cs
+++ b/src/AudioUnit/AudioUnit.cs
@@ -617,11 +617,8 @@ public AudioUnitStatus LoadInstrument (SamplerInstrumentData instrumentData, Aud
public AudioUnitStatus MakeConnection (AudioUnit sourceAudioUnit, uint sourceOutputNumber, uint destInputNumber)
{
- if (sourceAudioUnit == null)
- throw new ArgumentNullException ("sourceAudioUnit");
-
var auc = new AudioUnitConnection {
- SourceAudioUnit = sourceAudioUnit.handle,
+ SourceAudioUnit = sourceAudioUnit == null ? IntPtr.Zero : sourceAudioUnit.handle,
SourceOutputNumber = sourceOutputNumber,
DestInputNumber = destInputNumber
};
diff --git a/src/CloudKit/CKCompat.cs b/src/CloudKit/CKCompat.cs
index bc4029f4bcac..d9aef88830c5 100644
--- a/src/CloudKit/CKCompat.cs
+++ b/src/CloudKit/CKCompat.cs
@@ -29,14 +29,6 @@ public CKNotificationID ()
#endif
#if XAMCORE_2_0 || !MONOMAC
- public partial class CKFetchNotificationChangesOperation {
-
- // `init` does not work on watchOS but we can keep compatibility with a different init
- public CKFetchNotificationChangesOperation () : this ((CKServerChangeToken) null)
- {
- }
- }
-
public partial class CKModifyBadgeOperation {
// `init` does not work on watchOS but we can keep compatibility with a different init
diff --git a/src/Constants.tvos.cs.in b/src/Constants.tvos.cs.in
index 91b97acb66e8..ce9c31ea4d79 100644
--- a/src/Constants.tvos.cs.in
+++ b/src/Constants.tvos.cs.in
@@ -66,5 +66,8 @@ namespace ObjCRuntime {
public const string ReplayKitLibrary = "/System/Library/Frameworks/ReplayKit.framework/ReplayKit";
public const string UserNotificationsLibrary = "/System/Library/Frameworks/UserNotifications.framework/UserNotifications";
public const string VideoSubscriberAccountLibrary = "/System/Library/Frameworks/VideoSubscriberAccount.framework/VideoSubscriberAccount";
+
+ // tvOS 10.2
+ public const string VideoToolboxLibrary = "/System/Library/Frameworks/VideoToolbox.framework/VideoToolbox";
}
}
diff --git a/src/Constants.watch.cs.in b/src/Constants.watch.cs.in
index 5a23b9aa8f29..df181fa9691a 100644
--- a/src/Constants.watch.cs.in
+++ b/src/Constants.watch.cs.in
@@ -39,5 +39,9 @@ namespace ObjCRuntime {
public const string SceneKitLibrary = "/System/Library/Frameworks/SceneKit.framework/SceneKit";
public const string SpriteKitLibrary = "/System/Library/Frameworks/SpriteKit.framework/SpriteKit";
public const string UserNotificationsLibrary = "/System/Library/Frameworks/UserNotifications.framework/UserNotifications";
+
+ // WatchOS 3.2
+ public const string IntentsLibrary = "/System/Library/Frameworks/Intents.framework/Intents";
+
}
}
diff --git a/src/CoreFoundation/CFNetwork.cs b/src/CoreFoundation/CFNetwork.cs
index dd40e1a1400b..af42d805ebdf 100644
--- a/src/CoreFoundation/CFNetwork.cs
+++ b/src/CoreFoundation/CFNetwork.cs
@@ -74,6 +74,7 @@ public enum CFNetworkErrors {
FileIsDirectory = -1101,
NoPermissionsToReadFile = -1102,
DataLengthExceedsMaximum = -1103,
+ FileOutsideSafeArea = -1104,
SecureConnectionFailed = -1200,
ServerCertificateHasBadDate = -1201,
diff --git a/src/CoreText/CTLine.cs b/src/CoreText/CTLine.cs
index 48ed1549e0f0..2f09f4cbcaac 100644
--- a/src/CoreText/CTLine.cs
+++ b/src/CoreText/CTLine.cs
@@ -233,7 +233,7 @@ public nfloat GetOffsetForStringIndex (nint charIndex)
}
public delegate void CaretEdgeEnumerator (double offset, nint charIndex, bool leadingEdge, ref bool stop);
- unsafe delegate void CaretEdgeEnumeratorProxy (IntPtr block, double offset, nint charIndex, bool leadingEdge, ref bool stop);
+ unsafe delegate void CaretEdgeEnumeratorProxy (IntPtr block, double offset, nint charIndex, [MarshalAs (UnmanagedType.I1)] bool leadingEdge, [MarshalAs (UnmanagedType.I1)] ref bool stop);
[iOS (9,0)][Mac (10,11)]
[DllImport (Constants.CoreTextLibrary)]
diff --git a/src/CoreVideo/CVPixelFormatType.cs b/src/CoreVideo/CVPixelFormatType.cs
index 48d54bbb6c72..966a6a545bf0 100644
--- a/src/CoreVideo/CVPixelFormatType.cs
+++ b/src/CoreVideo/CVPixelFormatType.cs
@@ -93,5 +93,7 @@ public enum CVPixelFormatType : uint {
CV14BayerRggb = 0x72676734, // 'rgg4',
CV14BayerBggr = 0x62676734, // 'bgg4',
CV14BayerGbrg = 0x67627234, // 'gbr4',
+ // iOS 10.3
+ Argb2101010LEPacked = 0x6C313072, // 'l10r'
}
}
diff --git a/src/Foundation/Enum.cs b/src/Foundation/Enum.cs
index 2f41f698ed57..59eac8c64160 100644
--- a/src/Foundation/Enum.cs
+++ b/src/Foundation/Enum.cs
@@ -45,8 +45,13 @@ public enum NSUrlCredentialPersistence : nuint_compat_int {
}
#if MONOMAC || !XAMCORE_3_0
+
+#if !XAMCORE_4_0
[Native]
public enum NSBundleExecutableArchitecture : nint {
+#else
+ public enum NSBundleExecutableArchitecture {
+#endif
I386 = 0x00000007,
PPC = 0x00000012,
X86_64 = 0x01000007,
@@ -425,6 +430,7 @@ public enum NSUrlError : int {
FileIsDirectory = -1101,
NoPermissionsToReadFile = -1102,
DataLengthExceedsMaximum = -1103,
+ FileOutsideSafeArea = -1104,
SecureConnectionFailed = -1200,
ServerCertificateHasBadDate = -1201,
@@ -850,6 +856,7 @@ public enum NSLigatureType : nint {
None, Default, All
}
+#if !XAMCORE_4_0
[Flags]
[Native]
public enum NSDateComponentsWrappingBehavior : nuint_compat_int {
@@ -858,6 +865,7 @@ public enum NSDateComponentsWrappingBehavior : nuint_compat_int {
// Did not add the new enums here, we moved them elsewhere, and provided overloads.
}
+#endif
[Flags]
[Native]
diff --git a/src/HomeKit/HMEnums.cs b/src/HomeKit/HMEnums.cs
index 3dcee9121139..1d7c329f917f 100644
--- a/src/HomeKit/HMEnums.cs
+++ b/src/HomeKit/HMEnums.cs
@@ -411,137 +411,137 @@ public enum HMCharacteristicType {
[Field ("HMCharacteristicTypeImageMirroring")]
ImageMirroring,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeActive")]
Active,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeCurrentAirPurifierState")]
CurrentAirPurifierState,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeTargetAirPurifierState")]
TargetAirPurifierState,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeCurrentFanState")]
CurrentFanState,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeCurrentHeaterCoolerState")]
CurrentHeaterCoolerState,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeCurrentHumidifierDehumidifierState")]
CurrentHumidifierDehumidifierState,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeCurrentSlatState")]
CurrentSlatState,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeWaterLevel")]
WaterLevel,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeFilterChangeIndication")]
FilterChangeIndication,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeFilterLifeLevel")]
FilterLifeLevel,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeFilterResetChangeIndication")]
FilterResetChangeIndication,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeLockPhysicalControls")]
LockPhysicalControls,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeSwingMode")]
SwingMode,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeTargetHeaterCoolerState")]
TargetHeaterCoolerState,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeTargetHumidifierDehumidifierState")]
TargetHumidifierDehumidifierState,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeTargetFanState")]
TargetFanState,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeSlatType")]
SlatType,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeCurrentTilt")]
CurrentTilt,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeTargetTilt")]
TargetTilt,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeOzoneDensity")]
OzoneDensity,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeNitrogenDioxideDensity")]
NitrogenDioxideDensity,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeSulphurDioxideDensity")]
SulphurDioxideDensity,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypePM2_5Density")]
PM2_5Density,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypePM10Density")]
PM10Density,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeVolatileOrganicCompoundDensity")]
VolatileOrganicCompoundDensity,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeDehumidifierThreshold")]
DehumidifierThreshold,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMCharacteristicTypeHumidifierThreshold")]
HumidifierThreshold,
@@ -549,6 +549,14 @@ public enum HMCharacteristicType {
[iOS (9,0), Watch (2,0), TV (10,0)]
[Field ("HMCharacteristicTypeSecuritySystemAlarmType")]
SecuritySystemAlarmType,
+
+ [iOS (10,3), Watch (3,2), TV (10,2)]
+ [Field ("HMCharacteristicTypeLabelNamespace")]
+ LabelNamespace,
+
+ [iOS (10,3), Watch (3,2), TV (10,2)]
+ [Field ("HMCharacteristicTypeLabelIndex")]
+ LabelIndex,
}
// conveniance enum (ObjC uses NSString)
@@ -696,35 +704,39 @@ public enum HMServiceType {
[Field ("HMServiceTypeDoorbell")]
Doorbell,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMServiceTypeAirPurifier")]
AirPurifier,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMServiceTypeVentilationFan")]
VentilationFan,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMServiceTypeFilterMaintenance")]
FilterMaintenance,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMServiceTypeHeaterCooler")]
HeaterCooler,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMServiceTypeHumidifierDehumidifier")]
HumidifierDehumidifier,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMServiceTypeSlats")]
Slats,
+
+ [iOS (10,3), Watch (3,2), TV (10,2)]
+ [Field ("HMServiceTypeLabel")]
+ Label,
}
// conveniance enum (ObjC uses NSString)
@@ -896,8 +908,8 @@ public enum HMCharacteristicValueChargingState : nint {
[Watch (3,0), TV (10,0), iOS (10,0)]
[Native]
public enum HMCharacteristicValueContactState : nint {
- None = 0,
- Detected
+ Detected = 0,
+ None,
}
[Watch (3,0), TV (10,0), iOS (10,0)]
@@ -1015,27 +1027,27 @@ public enum HMAccessoryCategoryType {
[Field ("HMAccessoryCategoryTypeVideoDoorbell")]
VideoDoorbell,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMAccessoryCategoryTypeAirPurifier")]
AirPurifier,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMAccessoryCategoryTypeAirHeater")]
AirHeater,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMAccessoryCategoryTypeAirConditioner")]
AirConditioner,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMAccessoryCategoryTypeAirHumidifier")]
AirHumidifier,
- [NoWatch]
+ [Watch (3,1,1)]
[iOS (10,2), TV (10,1)]
[Field ("HMAccessoryCategoryTypeAirDehumidifier")]
AirDehumidifier,
@@ -1082,7 +1094,7 @@ public enum HMCameraAudioStreamSetting : nuint
BidirectionalAudioAllowed = 3
}
- [NoWatch]
+ [Watch (3,1,1)]
[TV (10,1), iOS (10,2)]
[Native]
public enum HMCharacteristicValueLockPhysicalControlsState : nint {
@@ -1090,7 +1102,7 @@ public enum HMCharacteristicValueLockPhysicalControlsState : nint {
Locked,
}
- [NoWatch]
+ [Watch (3,1,1)]
[TV (10,1), iOS (10,2)]
[Native]
public enum HMCharacteristicValueCurrentAirPurifierState : nint {
@@ -1099,7 +1111,7 @@ public enum HMCharacteristicValueCurrentAirPurifierState : nint {
Active,
}
- [NoWatch]
+ [Watch (3,1,1)]
[TV (10,1), iOS (10,2)]
[Native]
public enum HMCharacteristicValueTargetAirPurifierState : nint {
@@ -1107,7 +1119,7 @@ public enum HMCharacteristicValueTargetAirPurifierState : nint {
Automatic,
}
- [NoWatch]
+ [Watch (3,1,1)]
[TV (10,1), iOS (10,2)]
[Native]
public enum HMCharacteristicValueCurrentSlatState : nint {
@@ -1116,7 +1128,7 @@ public enum HMCharacteristicValueCurrentSlatState : nint {
Oscillating,
}
- [NoWatch]
+ [Watch (3,1,1)]
[TV (10,1), iOS (10,2)]
[Native]
public enum HMCharacteristicValueSlatType : nint {
@@ -1124,7 +1136,7 @@ public enum HMCharacteristicValueSlatType : nint {
Vertical,
}
- [NoWatch]
+ [Watch (3,1,1)]
[TV (10,1), iOS (10,2)]
[Native]
public enum HMCharacteristicValueFilterChange : nint {
@@ -1132,7 +1144,7 @@ public enum HMCharacteristicValueFilterChange : nint {
Needed,
}
- [NoWatch]
+ [Watch (3,1,1)]
[TV (10,1), iOS (10,2)]
[Native]
public enum HMCharacteristicValueCurrentFanState : nint {
@@ -1141,7 +1153,7 @@ public enum HMCharacteristicValueCurrentFanState : nint {
Active,
}
- [NoWatch]
+ [Watch (3,1,1)]
[TV (10,1), iOS (10,2)]
[Native]
public enum HMCharacteristicValueTargetFanState : nint {
@@ -1149,7 +1161,7 @@ public enum HMCharacteristicValueTargetFanState : nint {
Automatic,
}
- [NoWatch]
+ [Watch (3,1,1)]
[TV (10,1), iOS (10,2)]
[Native]
public enum HMCharacteristicValueCurrentHeaterCoolerState : nint {
@@ -1159,7 +1171,7 @@ public enum HMCharacteristicValueCurrentHeaterCoolerState : nint {
Cooling,
}
- [NoWatch]
+ [Watch (3,1,1)]
[TV (10,1), iOS (10,2)]
[Native]
public enum HMCharacteristicValueTargetHeaterCoolerState : nint {
@@ -1168,7 +1180,7 @@ public enum HMCharacteristicValueTargetHeaterCoolerState : nint {
Cool,
}
- [NoWatch]
+ [Watch (3,1,1)]
[TV (10,1), iOS (10,2)]
[Native]
public enum HMCharacteristicValueCurrentHumidifierDehumidifierState : nint {
@@ -1178,7 +1190,7 @@ public enum HMCharacteristicValueCurrentHumidifierDehumidifierState : nint {
Dehumidifying,
}
- [NoWatch]
+ [Watch (3,1,1)]
[TV (10,1), iOS (10,2)]
[Native]
public enum HMCharacteristicValueTargetHumidifierDehumidifierState : nint {
@@ -1187,7 +1199,7 @@ public enum HMCharacteristicValueTargetHumidifierDehumidifierState : nint {
Dehumidify,
}
- [NoWatch]
+ [Watch (3,1,1)]
[TV (10,1), iOS (10,2)]
[Native]
public enum HMCharacteristicValueSwingMode : nint {
@@ -1195,11 +1207,26 @@ public enum HMCharacteristicValueSwingMode : nint {
Enabled,
}
- [NoWatch]
+ [Watch (3,1,1)]
[TV (10,1), iOS (10,2)]
[Native]
public enum HMCharacteristicValueActivationState : nint {
Inactive = 0,
Active,
}
+
+ [Watch (3,2), TV (10,2), iOS (10,3)]
+ [Native]
+ public enum HMCharacteristicValueInputEvent : nint {
+ SinglePress = 0,
+ DoublePress,
+ LongPress,
+ }
+
+ [Watch (3,2), TV (10,2), iOS (10,3)]
+ [Native]
+ public enum HMCharacteristicValueLabelNamespace : nint {
+ Dot = 0,
+ Numeral,
+ }
}
diff --git a/src/Intents/INGetCarLockStatusIntentResponse.cs b/src/Intents/INGetCarLockStatusIntentResponse.cs
new file mode 100644
index 000000000000..c5ce164cfcf2
--- /dev/null
+++ b/src/Intents/INGetCarLockStatusIntentResponse.cs
@@ -0,0 +1,28 @@
+// INGetCarLockStatusIntentResponse.cs
+//
+// Authors:
+// Alex Soto
+//
+// Copyright 2017 Xamarin Inc. All rights reserved.
+//
+
+#if XAMCORE_2_0 && (IOS || TVOS)
+
+using XamCore.Foundation;
+using XamCore.Intents;
+using XamCore.ObjCRuntime;
+
+namespace XamCore.Intents {
+
+ public partial class INGetCarLockStatusIntentResponse {
+
+ // if/when we update the generator to allow this pattern we can move this back
+ // into bindings and making them virtual (not a breaking change)
+
+ public bool? Locked {
+ get { return _Locked == null ? null : (bool?) _Locked.BoolValue; }
+ }
+ }
+}
+
+#endif
diff --git a/src/Intents/INGetCarPowerLevelStatusIntentResponse.cs b/src/Intents/INGetCarPowerLevelStatusIntentResponse.cs
new file mode 100644
index 000000000000..216544b68c7c
--- /dev/null
+++ b/src/Intents/INGetCarPowerLevelStatusIntentResponse.cs
@@ -0,0 +1,32 @@
+// INGetCarPowerLevelStatusIntentResponse.cs
+//
+// Authors:
+// Alex Soto
+//
+// Copyright 2017 Xamarin Inc. All rights reserved.
+//
+
+#if XAMCORE_2_0 && (IOS || TVOS)
+
+using XamCore.Foundation;
+using XamCore.Intents;
+using XamCore.ObjCRuntime;
+
+namespace XamCore.Intents {
+
+ public partial class INGetCarPowerLevelStatusIntentResponse {
+
+ // if/when we update the generator to allow this pattern we can move this back
+ // into bindings and making them virtual (not a breaking change)
+
+ public float? FuelPercentRemaining {
+ get { return _FuelPercentRemaining == null ? null : (float?) _FuelPercentRemaining.FloatValue; }
+ }
+
+ public float? ChargePercentRemaining {
+ get { return _ChargePercentRemaining == null ? null : (float?) _ChargePercentRemaining.FloatValue; }
+ }
+ }
+}
+
+#endif
diff --git a/src/Intents/INIntentResolutionResult.cs b/src/Intents/INIntentResolutionResult.cs
index 60383a56804c..a4c28892644a 100644
--- a/src/Intents/INIntentResolutionResult.cs
+++ b/src/Intents/INIntentResolutionResult.cs
@@ -15,6 +15,7 @@
namespace XamCore.Intents {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Register ("INIntentResolutionResult", SkipRegistration = true)]
public sealed partial class INIntentResolutionResult : INIntentResolutionResult
where ObjectType : class, INativeObject
diff --git a/src/Intents/INRideOption.cs b/src/Intents/INRideOption.cs
index 992c4c086f3a..3c0ec9b487ec 100644
--- a/src/Intents/INRideOption.cs
+++ b/src/Intents/INRideOption.cs
@@ -1,4 +1,4 @@
-#if XAMCORE_2_0 && IOS
+#if XAMCORE_2_0 && (IOS || TVOS)
using XamCore.Foundation;
using XamCore.Intents;
diff --git a/src/Intents/INSetCarLockStatusIntent.cs b/src/Intents/INSetCarLockStatusIntent.cs
new file mode 100644
index 000000000000..f8b70ac769f3
--- /dev/null
+++ b/src/Intents/INSetCarLockStatusIntent.cs
@@ -0,0 +1,34 @@
+//
+// INSetCarLockStatusIntent.cs
+//
+// Authors:
+// Alex Soto
+//
+// Copyright 2017 Xamarin Inc. All rights reserved.
+//
+
+#if XAMCORE_2_0 && (IOS || TVOS)
+
+using XamCore.Foundation;
+using XamCore.Intents;
+using XamCore.ObjCRuntime;
+
+namespace XamCore.Intents {
+
+ public partial class INSetCarLockStatusIntent {
+
+ public INSetCarLockStatusIntent (bool? locked, INSpeakableString carName) :
+ this (locked.HasValue ? new NSNumber (locked.Value) : null, carName)
+ {
+ }
+
+ // if/when we update the generator to allow this pattern we can move this back
+ // into bindings and making them virtual (not a breaking change)
+
+ public bool? Locked {
+ get { return _Locked == null ? null : (bool?) _Locked.BoolValue; }
+ }
+ }
+}
+
+#endif
diff --git a/src/LocalAuthentication/LAEnums.cs b/src/LocalAuthentication/LAEnums.cs
index 639ad93e6959..69469a0d8fd4 100644
--- a/src/LocalAuthentication/LAEnums.cs
+++ b/src/LocalAuthentication/LAEnums.cs
@@ -8,6 +8,7 @@ namespace XamCore.LocalAuthentication {
[Availability (Platform.Mac_10_10)]
[Native]
public enum LAPolicy : nint {
+ [Mac (10,12,2)]
DeviceOwnerAuthenticationWithBiometrics = 1,
DeviceOwnerAuthentication = 2
}
diff --git a/src/MediaPlayer/MPMediaItem.cs b/src/MediaPlayer/MPMediaItem.cs
index 15f4234ef2b6..8e1b48e1a2c5 100644
--- a/src/MediaPlayer/MPMediaItem.cs
+++ b/src/MediaPlayer/MPMediaItem.cs
@@ -292,6 +292,13 @@ public NSDate DateAdded {
return (ValueForProperty (DateAddedProperty) as NSDate);
}
}
+
+ [iOS (10,3)]
+ public NSString PlaybackStoreID {
+ get {
+ return (ValueForProperty (PlaybackStoreIDProperty) as NSString);
+ }
+ }
}
}
diff --git a/src/MediaPlayer/MPNowPlayingInfoCenter.cs b/src/MediaPlayer/MPNowPlayingInfoCenter.cs
index 9e0a96dbcd02..ac25019818f1 100644
--- a/src/MediaPlayer/MPNowPlayingInfoCenter.cs
+++ b/src/MediaPlayer/MPNowPlayingInfoCenter.cs
@@ -50,6 +50,8 @@ public MPNowPlayingInfo ()
public MPNowPlayingInfoMediaType? MediaType { get; set; }
[iOS (10,0)]
public bool? IsLiveStream { get; set; }
+ [iOS (10,3)]
+ public NSUrl AssetUrl { get; set; }
public string AlbumTitle;
public string Artist;
@@ -93,6 +95,8 @@ internal NSDictionary ToDictionary ()
Add (dict, MPNowPlayingInfoCenter.PropertyMediaType, new NSNumber ((int)MediaType.Value));
if (IsLiveStream.HasValue)
Add (dict, MPNowPlayingInfoCenter.PropertyIsLiveStream, new NSNumber (IsLiveStream.Value));
+ if (AssetUrl != null)
+ Add (dict, MPNowPlayingInfoCenter.PropertyAssetUrl, AssetUrl);
if (AlbumTrackCount.HasValue)
dict.Add (MPMediaItem.AlbumTrackCountProperty, new NSNumber (AlbumTrackCount.Value));
@@ -167,6 +171,8 @@ internal MPNowPlayingInfo (NSDictionary source)
MediaType = (MPNowPlayingInfoMediaType) (result as NSNumber).UInt32Value;
if (TryGetValue (source, MPNowPlayingInfoCenter.PropertyIsLiveStream, out result))
IsLiveStream = (bool) (result as NSNumber).BoolValue;
+ if (TryGetValue (source, MPNowPlayingInfoCenter.PropertyAssetUrl, out result))
+ AssetUrl = result as NSUrl;
if (source.TryGetValue (MPMediaItem.AlbumTrackCountProperty, out result))
AlbumTrackCount = (int) (result as NSNumber).UInt32Value;
diff --git a/src/MediaPlayer/MediaPlayer.cs b/src/MediaPlayer/MediaPlayer.cs
index 14009ba31515..0ae65b7d40c2 100644
--- a/src/MediaPlayer/MediaPlayer.cs
+++ b/src/MediaPlayer/MediaPlayer.cs
@@ -303,6 +303,7 @@ public enum MPErrorCode : nint {
NotSupported,
[iOS (10,1)]
Cancelled,
+ RequestTimedOut,
}
[NoMac]
diff --git a/src/ModelIO/MDLAsset.cs b/src/ModelIO/MDLAsset.cs
index e0778641dfe4..306e0e399135 100644
--- a/src/ModelIO/MDLAsset.cs
+++ b/src/ModelIO/MDLAsset.cs
@@ -7,6 +7,14 @@ public MDLObject this [nuint index] {
return GetObject (index);
}
}
+
+#if !XAMCORE_4_0
+ [Obsolete ("Use the overload that takes an 'MDLLightProbeIrradianceDataSource' instead.")]
+ public static MDLLightProbe[] PlaceLightProbes (float density, MDLProbePlacement type, MDLLightProbeIrradianceDataSource dataSource)
+ {
+ return PlaceLightProbes (density, type, (IMDLLightProbeIrradianceDataSource) dataSource);
+ }
+#endif
}
}
#endif
\ No newline at end of file
diff --git a/src/ModelIO/MDLMesh.cs b/src/ModelIO/MDLMesh.cs
index ce29c9e1c4ce..e5543c7ce535 100644
--- a/src/ModelIO/MDLMesh.cs
+++ b/src/ModelIO/MDLMesh.cs
@@ -17,6 +17,7 @@
using Vector2i = global::OpenTK.Vector2i;
using Vector2 = global::OpenTK.Vector2;
using Vector3 = global::OpenTK.Vector3;
+using Vector3i = global::OpenTK.Vector3i;
using Vector4 = global::OpenTK.Vector4;
using Matrix2 = global::OpenTK.Matrix2;
using Matrix3 = global::OpenTK.Matrix3;
@@ -27,6 +28,12 @@
namespace XamCore.ModelIO {
partial class MDLMesh {
+
+ public enum MDLMeshVectorType {
+ Dimensions,
+ Extent,
+ }
+
internal MDLMesh (Vector3 extent, Vector2i segments, bool inwardNormals, MDLGeometryType geometryType, IMDLMeshBufferAllocator allocator, int? hemisphereSegments, bool? cap, bool? isCone)
{
if (hemisphereSegments.HasValue) {
@@ -44,11 +51,46 @@ internal MDLMesh (Vector3 extent, Vector2i segments, bool inwardNormals, MDLGeom
}
}
+ internal MDLMesh (Vector3 extent, Vector3i segments, bool inwardNormals, MDLGeometryType geometryType, IMDLMeshBufferAllocator allocator)
+ {
+ InitializeHandle (InitBox (extent, segments, inwardNormals, geometryType, allocator), "initBoxWithExtent:segments:inwardNormals:geometryType:allocator:");
+ }
+
+ internal MDLMesh (Vector3 extent, Vector2i segments, bool inwardNormals, bool topCap, bool bottomCap, MDLGeometryType geometryType, IMDLMeshBufferAllocator allocator)
+ {
+ InitializeHandle (InitCylinder (extent, segments, inwardNormals, topCap, bottomCap, geometryType, allocator), "initCylinderWithExtent:segments:inwardNormals:topCap:bottomCap:geometryType:allocator:");
+ }
+
+ internal MDLMesh (Vector3 extent, Vector2i segments, MDLGeometryType geometryType, IMDLMeshBufferAllocator allocator)
+ {
+ InitializeHandle (InitPlane (extent, segments, geometryType, allocator), "initPlaneWithExtent:segments:geometryType:allocator:");
+ }
+
+ internal MDLMesh (Vector3 extent, bool inwardNormals, MDLGeometryType geometryType, IMDLMeshBufferAllocator allocator)
+ {
+ InitializeHandle (InitIcosahedron (extent, inwardNormals, geometryType, allocator), "initIcosahedronWithExtent:inwardNormals:geometryType:allocator:");
+ }
+
internal MDLMesh (MDLMesh mesh, int submeshIndex, uint subdivisionLevels, IMDLMeshBufferAllocator allocator)
{
InitializeHandle (InitMesh (mesh, submeshIndex, subdivisionLevels, allocator), "initMeshBySubdividingMesh:submeshIndex:subdivisionLevels:allocator:");
}
+ // Note: we turn these constructors into static constructors because we don't want to lose the shape name. Also, the signatures of these constructors differ so it would not be possible to use an enum to differentiate the shapes.
+
+ [iOS (10,0)][TV (10,0)][Mac (10,12)]
+ public static MDLMesh CreateBox (Vector3 vector, Vector3i segments, MDLGeometryType geometryType, bool inwardNormals, IMDLMeshBufferAllocator allocator, MDLMeshVectorType type = MDLMeshVectorType.Dimensions)
+ {
+ switch (type) {
+ case MDLMeshVectorType.Dimensions:
+ return NewBoxWithDimensions (vector, segments, geometryType, inwardNormals, allocator);
+ case MDLMeshVectorType.Extent:
+ return new MDLMesh (vector, segments, inwardNormals, geometryType, allocator);
+ default:
+ throw new ArgumentException ("The 'MDLMeshVectorType type' argument needs a value.");
+ }
+ }
+
[iOS (10,0)][TV (10,0)][Mac (10,12)]
public static MDLMesh CreateSphere (Vector3 dimensions, Vector2i segments, MDLGeometryType geometryType, bool inwardNormals, IMDLMeshBufferAllocator allocator)
{
@@ -61,6 +103,12 @@ public static MDLMesh CreateHemisphere (Vector3 dimensions, Vector2i segments, M
return new MDLMesh (dimensions, segments, inwardNormals, geometryType, allocator, null, cap, false);
}
+ [iOS (10,0)][TV (10,0)][Mac (10,12)]
+ public static MDLMesh CreateCylinder (Vector3 extent, Vector2i segments, bool inwardNormals, bool topCap, bool bottomCap, MDLGeometryType geometryType, IMDLMeshBufferAllocator allocator)
+ {
+ return new MDLMesh (extent, segments, inwardNormals, topCap, bottomCap, geometryType, allocator);
+ }
+
[iOS (10,0)][TV (10,0)][Mac (10,12)]
public static MDLMesh CreateCapsule (Vector3 dimensions, Vector2i segments, MDLGeometryType geometryType, bool inwardNormals, int hemisphereSegments, IMDLMeshBufferAllocator allocator)
{
@@ -73,6 +121,18 @@ public static MDLMesh CreateCone (Vector3 dimensions, Vector2i segments, MDLGeom
return new MDLMesh (dimensions, segments, inwardNormals, geometryType, allocator, null, cap, true);
}
+ [iOS (10,0)][TV (10,0)][Mac (10,12)]
+ public static MDLMesh CreatePlane (Vector3 extent, Vector2i segments, MDLGeometryType geometryType, IMDLMeshBufferAllocator allocator)
+ {
+ return new MDLMesh (extent, segments, geometryType, allocator);
+ }
+
+ [iOS (10,0)][TV (10,0)][Mac (10,12)]
+ public static MDLMesh CreateIcosahedron (Vector3 extent, bool inwardNormals, MDLGeometryType geometryType, IMDLMeshBufferAllocator allocator)
+ {
+ return new MDLMesh (extent, inwardNormals, geometryType, allocator);
+ }
+
public static MDLMesh CreateSubdividedMesh (MDLMesh mesh, int submeshIndex, uint subdivisionLevels, IMDLMeshBufferAllocator allocator)
{
return new MDLMesh (mesh, submeshIndex, subdivisionLevels, allocator);
diff --git a/src/ObjCRuntime/Protocol.cs b/src/ObjCRuntime/Protocol.cs
index 65832a16cb72..b766d4ca3a00 100644
--- a/src/ObjCRuntime/Protocol.cs
+++ b/src/ObjCRuntime/Protocol.cs
@@ -24,6 +24,19 @@ public Protocol (string name)
throw new ArgumentException (String.Format ("'{0}' is an unknown protocol", name));
}
+ public Protocol (Type type)
+ {
+ if (type.IsInterface) {
+ foreach (var pa in type.GetCustomAttributes (false)) {
+ handle = objc_getProtocol (pa.Name);
+ if (handle != IntPtr.Zero)
+ return;
+ }
+ }
+ if (handle == IntPtr.Zero)
+ throw new ArgumentException (string.Format ("'{0}' is an unknown protocol", type.FullName));
+ }
+
public Protocol (IntPtr handle)
{
this.handle = handle;
diff --git a/src/OpenGLES/EAGLContext.cs b/src/OpenGLES/EAGLContext.cs
index f6eb4119478e..512d8bc75204 100644
--- a/src/OpenGLES/EAGLContext.cs
+++ b/src/OpenGLES/EAGLContext.cs
@@ -6,6 +6,11 @@ namespace XamCore.OpenGLES
{
public partial class EAGLContext
{
+ public enum PresentationMode {
+ AtTime = 0,
+ AfterMinimumDuration = 1,
+ }
+
[DllImport (Constants.OpenGLESLibrary)]
public extern static void EAGLGetVersion (out nuint major, out nuint minor);
@@ -15,6 +20,27 @@ public EAGLContext ()
{
}
#endif
+
+ [iOS (10,0)]
+ [TV (10,0)]
+ public virtual bool PresentRenderBuffer (nuint target, double presentationTime)
+ {
+ return _PresentRenderbufferAtTime (target, presentationTime);
+ }
+
+ [iOS (10,3)]
+ [TV (10,2)]
+ public virtual bool PresentRenderBuffer (nuint target, double presentationTime, PresentationMode mode)
+ {
+ switch (mode) {
+ case PresentationMode.AtTime:
+ return _PresentRenderbufferAtTime (target, presentationTime);
+ case PresentationMode.AfterMinimumDuration:
+ return _PresentRenderbufferAfterMinimumDuration (target, presentationTime);
+ default:
+ throw new ArgumentOutOfRangeException ($"Unknown presentation mode: {mode}", nameof (mode));
+ }
+ }
}
}
diff --git a/src/Photos/Enums.cs b/src/Photos/Enums.cs
index 0b60f49863a9..c70d70e03543 100644
--- a/src/Photos/Enums.cs
+++ b/src/Photos/Enums.cs
@@ -164,6 +164,8 @@ public enum PHAssetCollectionSubtype : nint {
SmartAlbumScreenshots = 211,
[iOS (10,2), TV (10,1)]
SmartAlbumDepthEffect = 212,
+ [iOS (10,3), TV (10,2)]
+ SmartAlbumLivePhotos = 213,
#if XAMCORE_2_0
Any = Int64.MaxValue
#else
diff --git a/src/SceneKit/SCNRenderer.cs b/src/SceneKit/SCNRenderer.cs
new file mode 100644
index 000000000000..358c098179c4
--- /dev/null
+++ b/src/SceneKit/SCNRenderer.cs
@@ -0,0 +1,25 @@
+#if !WATCH
+
+using System;
+using XamCore.Foundation;
+using XamCore.ObjCRuntime;
+
+#if MONOMAC
+using GLContext = global::XamCore.OpenGL.CGLContext;
+#else
+using GLContext = global::XamCore.OpenGLES.EAGLContext;
+#endif
+
+namespace XamCore.SceneKit {
+
+ public partial class SCNRenderer {
+
+ // workaround for generator bug #51514
+ public static SCNRenderer FromContext (GLContext context, NSDictionary options)
+ {
+ return SCNRenderer.FromContext (context.GetHandle (), options);
+ }
+ }
+}
+
+#endif
diff --git a/src/Security/Certificate.cs b/src/Security/Certificate.cs
index 235939614ba0..7f2f2e276b3e 100644
--- a/src/Security/Certificate.cs
+++ b/src/Security/Certificate.cs
@@ -264,50 +264,97 @@ public NSData GetPublicKey ()
return new NSData (dataPtr);
}
}
-#elif NATIVE_APPLE_CERTIFICATE && (__IOS__ || __WATCHOS__ || __TVOS__)
- //
- // EXPERIMENTAL
- // Needs some more testing before we can make this public.
- // AppleTls does not actually use this API, so it may be removed again.
- //
- internal NSData GetPublicKey ()
+#else
+ [iOS (10,3)]
+ [DllImport (Constants.SecurityLibrary)]
+ static extern /* __nullable SecKeyRef */ IntPtr SecCertificateCopyPublicKey (IntPtr /* SecCertificateRef */ certificate);
+
+ [iOS (10,3)]
+ public SecKey GetPublicKey ()
{
- if (handle == IntPtr.Zero)
- throw new ObjectDisposedException ("SecCertificate");
+ IntPtr data = SecCertificateCopyPublicKey (handle);
+ return (data == IntPtr.Zero) ? null : new SecKey (data, true);
+ }
+#endif
+ [iOS (10,3)] // [Mac (10,5)]
+ [DllImport (Constants.SecurityLibrary)]
+ static extern /* OSStatus */ int SecCertificateCopyCommonName (IntPtr /* SecCertificateRef */ certificate, out IntPtr /* CFStringRef * __nonnull CF_RETURNS_RETAINED */ commonName);
- var policy = SecPolicy.CreateBasicX509Policy ();
- var trust = new SecTrust (this, policy);
- trust.Evaluate ();
+ [iOS (10,3)]
+ public string GetCommonName ()
+ {
+ IntPtr cn;
+ if (SecCertificateCopyCommonName (handle, out cn) == 0)
+ return CFString.FetchString (cn, releaseHandle: true);
+ return null;
+ }
- SecStatusCode status;
+ [iOS (10,3)] // [Mac (10,5)]
+ [DllImport (Constants.SecurityLibrary)]
+ static extern /* OSStatus */ int SecCertificateCopyEmailAddresses (IntPtr /* SecCertificateRef */ certificate, out IntPtr /* CFArrayRef * __nonnull CF_RETURNS_RETAINED */ emailAddresses);
- using (var key = trust.GetPublicKey ())
- using (var query = new SecRecord (SecKind.Key)) {
- query.SetValueRef (key);
+ [iOS (10,3)]
+ public string[] GetEmailAddresses ()
+ {
+ string[] results = null;
+ IntPtr emails;
+ if (SecCertificateCopyEmailAddresses (handle, out emails) == 0) {
+ results = NSArray.StringArrayFromHandle (emails);
+ if (emails != IntPtr.Zero)
+ CFObject.CFRelease (emails);
+ }
+ return results;
+ }
- status = SecKeyChain.Add (query);
- if (status != SecStatusCode.Success && status != SecStatusCode.DuplicateItem)
- throw new InvalidOperationException (status.ToString ());
+ [iOS (10,3)]
+ [Mac (10,12,4)]
+ [DllImport (Constants.SecurityLibrary)]
+ static extern /* __nullable CFDataRef */ IntPtr SecCertificateCopyNormalizedIssuerSequence (IntPtr /* SecCertificateRef */ certificate);
- bool added = status == SecStatusCode.Success;
+ [iOS (10,3)]
+ [Mac (10,12,4)]
+ public NSData GetNormalizedIssuerSequence ()
+ {
+ IntPtr data = SecCertificateCopyNormalizedIssuerSequence (handle);
+ return (data == IntPtr.Zero) ? null : new NSData (data, true);
+ }
- try {
- var data = SecKeyChain.QueryAsData (query, false, out status);
- if (status != SecStatusCode.Success)
- throw new InvalidOperationException (status.ToString ());
+ [iOS (10,3)]
+ [Mac (10,12,4)]
+ [DllImport (Constants.SecurityLibrary)]
+ static extern /* __nullable CFDataRef */ IntPtr SecCertificateCopyNormalizedSubjectSequence (IntPtr /* SecCertificateRef */ certificate);
- return data;
- } finally {
- if (added) {
- status = SecKeyChain.Remove (query);
- if (status != SecStatusCode.Success)
- throw new InvalidOperationException (status.ToString ());
- }
- }
- }
+ [iOS (10,3)]
+ [Mac (10,12,4)]
+ public NSData GetNormalizedSubjectSequence ()
+ {
+ IntPtr data = SecCertificateCopyNormalizedSubjectSequence (handle);
+ return (data == IntPtr.Zero) ? null : new NSData (data, true);
}
+
+#if MONOMAC
+ [Mac (10,7)]
+ [DllImport (Constants.SecurityLibrary)]
+ static extern /* __nullable CFDataRef */ IntPtr SecCertificateCopySerialNumber (IntPtr /* SecCertificateRef */ certificate, IntPtr /* CFErrorRef * */ error);
+#else
+ [iOS (10,3)]
+ [DllImport (Constants.SecurityLibrary)]
+ static extern /* __nullable CFDataRef */ IntPtr SecCertificateCopySerialNumber (IntPtr /* SecCertificateRef */ certificate);
+#endif
+ [iOS (10,3)]
+ [Mac (10,7)]
+ public NSData GetSerialNumber ()
+ {
+#if MONOMAC
+ IntPtr data = SecCertificateCopySerialNumber (handle, IntPtr.Zero);
+#else
+ IntPtr data = SecCertificateCopySerialNumber (handle);
#endif
-#endif
+ return (data == IntPtr.Zero) ? null : new NSData (data, true);
+ }
+
+#endif // COREBUILD
+
~SecCertificate ()
{
Dispose (false);
diff --git a/src/Security/Enums.cs b/src/Security/Enums.cs
index f07cbb235709..a728c8f8688c 100644
--- a/src/Security/Enums.cs
+++ b/src/Security/Enums.cs
@@ -11,13 +11,16 @@ namespace XamCore.Security {
public enum SecStatusCode {
Success = 0,
Unimplemented = -4,
+ DiskFull = -34,
IO = -36,
OpWr = -49,
Param = -50,
+ WritePermissions = -61,
Allocate = -108,
UserCanceled = -128,
BadReq = -909,
InternalComponent = -2070,
+ CoreFoundationUnknown = -4960,
NotAvailable = -25291,
ReadOnly = -25292,
AuthFailed = -25293,
@@ -28,11 +31,6 @@ public enum SecStatusCode {
ItemNotFound = -25300,
InteractionNotAllowed = -25308,
Decode = -26275,
-
-#if MONOMAC
- DiskFull = -34,
- WritePermissions = -61,
- CoreFoundationUnknown = -4960,
DuplicateCallback = -25297,
InvalidCallback = -25298,
BufferTooSmall = -25301,
@@ -293,9 +291,7 @@ public enum SecStatusCode {
MissingAttributeWrappedKeyFormat = -67805, /* A wrapped key format attribute was missing. */
StagedOperationInProgress = -67806, /* A staged operation is in progress. */
StagedOperationNotStarted = -67807, /* A staged operation was not started. */
-#endif
VerifyFailed = -67808, /* A cryptographic verification failure has occurred. */
-#if MONOMAC
QuerySizeUnknown = -67809, /* The query size is unknown. */
BlockSizeMismatch = -67810, /* A block size mismatch occurred. */
PublicKeyInconsistent = -67811, /* The public key was inconsistent. */
@@ -314,7 +310,11 @@ public enum SecStatusCode {
InvalidAuthority = -67824, /* The authority was not valid. */
VerifyActionFailed = -67825, /* A verify action has failed. */
InvalidCertAuthority = -67826, /* The certificate authority was not valid. */
- InvaldCRLAuthority = -67827, /* The CRL authority was not valid. */
+ InvalidCRLAuthority = -67827, /* The CRL authority was not valid. */
+#if MONOMAC
+ [Obsolete ("Use InvalidCRLAuthority")]
+ InvaldCRLAuthority = InvalidCRLAuthority,
+#endif
InvalidCRLEncoding = -67828, /* The CRL encoding was not valid. */
InvalidCRLType = -67829, /* The CRL type was not valid. */
InvalidCRL = -67830, /* The CRL was not valid. */
@@ -339,7 +339,11 @@ public enum SecStatusCode {
UnsupportedService = -67849, /* The service is not supported. */
InvalidTupleGroup = -67850, /* The tuple group was not valid. */
InvalidBaseACLs = -67851, /* The base ACLs are not valid. */
- InvalidTupleCredendtials = -67852, /* The tuple credentials are not valid. */
+ InvalidTupleCredentials = -67852, /* The tuple credentials are not valid. */
+#if MONOMAC
+ [Obsolete ("Use InvalidTupleCredentials")]
+ InvalidTupleCredendtials = InvalidTupleCredentials,
+#endif
InvalidEncoding = -67853, /* The encoding was not valid. */
InvalidValidityPeriod = -67854, /* The validity period was not valid. */
InvalidRequestor = -67855, /* The requestor was not valid. */
@@ -386,7 +390,6 @@ public enum SecStatusCode {
TimestampWaiting = -67896, /* A timestamp transaction is waiting. */
TimestampRevocationWarning = -67897, /* A timestamp authority revocation warning was issued. */
TimestampRevocationNotification = -67898, /* A timestamp authority revocation notification was issued. */
-#endif
}
// typedef uint32_t SecPadding;
@@ -394,15 +397,28 @@ public enum SecStatusCode {
public enum SecPadding {
None = 0,
PKCS1 = 1,
+
+ [NoMac][TV (10,0)][Watch (3,0)]
OAEP = 2,
+
[iOS (8,3)]
Raw = 0x4000,
+
+ [Obsolete ("Hash algorithm is deprecated")][NoTV][NoWatch]
PKCS1MD2 = 0x8000,
+
+ [Obsolete ("Hash algorithm is deprecated")][NoTV][NoWatch]
PKCS1MD5 = 0x8001,
+
PKCS1SHA1 = 0x8002,
+
+ [NoMac]
PKCS1SHA224 = 0x8003,
+ [NoMac]
PKCS1SHA256 = 0x8004,
+ [NoMac]
PKCS1SHA384 = 0x8005,
+ [NoMac]
PKCS1SHA512 = 0x8006,
}
diff --git a/src/Security/Items.cs b/src/Security/Items.cs
index 3a0441b8045d..63c04e2cdcdf 100644
--- a/src/Security/Items.cs
+++ b/src/Security/Items.cs
@@ -1155,6 +1155,26 @@ public bool IsPermanent {
}
}
+ public bool IsSensitive {
+ get {
+ return Fetch (SecAttributeKey.IsSensitive) == CFBoolean.True.Handle;
+ }
+
+ set {
+ SetValue (CFBoolean.FromBoolean (value).Handle, SecAttributeKey.IsSensitive);
+ }
+ }
+
+ public bool IsExtractable {
+ get {
+ return Fetch (SecAttributeKey.IsExtractable) == CFBoolean.True.Handle;
+ }
+
+ set {
+ SetValue (CFBoolean.FromBoolean (value).Handle, SecAttributeKey.IsExtractable);
+ }
+ }
+
public NSData ApplicationTag {
get {
return Fetch (SecAttributeKey.ApplicationTag);
diff --git a/src/Security/SecAccessControl.cs b/src/Security/SecAccessControl.cs
index 2f232c499adb..9475a2b775f7 100644
--- a/src/Security/SecAccessControl.cs
+++ b/src/Security/SecAccessControl.cs
@@ -30,12 +30,25 @@ public enum SecAccessControlCreateFlags : nuint {
public enum SecAccessControlCreateFlags : nint {
#endif
UserPresence = 1 << 0,
+
+ [iOS (9,0)][Mac (10,12,1)]
TouchIDAny = 1 << 1,
+
+ [iOS (9,0)][Mac (10,12,1)]
TouchIDCurrentSet = 1 << 3,
+
DevicePasscode = 1 << 4,
+
+ [iOS (9,0)][Mac (10,12,1)]
Or = 1 << 14,
+
+ [iOS (9,0)][Mac (10,12,1)]
And = 1 << 15,
+
+ [iOS (9,0)][Mac (10,12,1)]
PrivateKeyUsage = 1 << 30,
+
+ [iOS (9,0)][Mac (10,12,1)]
ApplicationPassword = 1 << 31,
}
diff --git a/src/StoreKit/Enums.cs b/src/StoreKit/Enums.cs
index 48a59f8539e8..0ab633b6ed13 100644
--- a/src/StoreKit/Enums.cs
+++ b/src/StoreKit/Enums.cs
@@ -28,6 +28,8 @@ public enum SKError : nint {
// iOS 9.3
CloudServicePermissionDenied,
CloudServiceNetworkConnectionFailed,
+ // iOS 10.3
+ Revoked,
}
// typedef NSInteger SKDownloadState;
diff --git a/src/UIKit/UIEnums.cs b/src/UIKit/UIEnums.cs
index 79ddfb464cc5..424c2c33a0c3 100644
--- a/src/UIKit/UIEnums.cs
+++ b/src/UIKit/UIEnums.cs
@@ -991,7 +991,14 @@ public enum UIViewAnimationOptions : nuint_compat_int {
TransitionCurlDown = 4 << 20,
TransitionCrossDissolve = 5 << 20,
TransitionFlipFromTop = 6 << 20,
- TransitionFlipFromBottom = 7 << 20
+ TransitionFlipFromBottom = 7 << 20,
+
+ [iOS (10,3)]
+ PreferredFramesPerSecondDefault = 0 << 24,
+ [iOS (10,3)]
+ PreferredFramesPerSecond60 = 3 << 24,
+ [iOS (10,3)]
+ PreferredFramesPerSecond30 = 7 << 24,
}
#if !WATCH
@@ -1974,4 +1981,11 @@ public enum UITextFieldDidEndEditingReason : nint {
[NoiOS]
Cancelled
}
+
+ [iOS (10,3), TV (10,2), NoWatch]
+ [Native]
+ public enum UIScrollViewIndexDisplayMode : nint {
+ Automatic,
+ AlwaysHidden
+ }
}
diff --git a/src/VideoToolbox/VTCompressionProperties.cs b/src/VideoToolbox/VTCompressionProperties.cs
index 8560f41f195e..71ce2cce8bf7 100644
--- a/src/VideoToolbox/VTCompressionProperties.cs
+++ b/src/VideoToolbox/VTCompressionProperties.cs
@@ -17,7 +17,6 @@
namespace XamCore.VideoToolbox {
public partial class VTCompressionProperties {
- [Mac (10,8), iOS (8,0)]
public VTProfileLevel ProfileLevel {
get {
var key = GetNSStringValue (VTCompressionPropertyKey.ProfileLevel);
@@ -275,7 +274,7 @@ public VTProfileLevel ProfileLevel {
}
}
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
public VTH264EntropyMode H264EntropyMode {
get {
var key = GetNSStringValue (VTCompressionPropertyKey.H264EntropyMode);
@@ -303,7 +302,6 @@ public VTH264EntropyMode H264EntropyMode {
}
}
- [Mac (10,8), iOS (8,0)]
public List DataRateLimits {
get {
using (var arr = GetNativeValue (VTCompressionPropertyKey.DataRateLimits)) {
@@ -340,7 +338,6 @@ public List DataRateLimits {
}
}
- [Mac (10,8), iOS (8,0)]
public VTFieldDetail FieldDetail {
get {
var key = GetNSStringValue (VTCompressionPropertyKey.FieldDetail);
@@ -378,7 +375,6 @@ public VTFieldDetail FieldDetail {
}
}
#if XAMCORE_2_0
- [Mac (10,8), iOS (8,0)]
public VTColorPrimaries ColorPrimaries {
get {
var key = GetNSStringValue (VTCompressionPropertyKey.ColorPrimaries);
@@ -417,7 +413,6 @@ public VTColorPrimaries ColorPrimaries {
}
#endif
- [Mac (10,8), iOS (8,0)]
public VTTransferFunction TransferFunction {
get {
var key = GetNSStringValue (VTCompressionPropertyKey.TransferFunction);
@@ -450,7 +445,6 @@ public VTTransferFunction TransferFunction {
}
}
- [Mac (10,8), iOS (8,0)]
public VTYCbCrMatrix YCbCrMatrix {
get {
var key = GetNSStringValue (VTCompressionPropertyKey.YCbCrMatrix);
@@ -483,7 +477,6 @@ public VTYCbCrMatrix YCbCrMatrix {
}
}
- [Mac (10,8), iOS (8,0)]
public VTMultiPassStorage MultiPassStorage {
get {
return GetNativeValue (VTCompressionPropertyKey.MultiPassStorage);
diff --git a/src/VideoToolbox/VTCompressionSession.cs b/src/VideoToolbox/VTCompressionSession.cs
index b2c48911a41c..2125c11c70b3 100644
--- a/src/VideoToolbox/VTCompressionSession.cs
+++ b/src/VideoToolbox/VTCompressionSession.cs
@@ -17,7 +17,7 @@
using XamCore.CoreVideo;
namespace XamCore.VideoToolbox {
- [Mac (10,8), iOS (8,0)]
+ [Mac (10,8), iOS (8,0), TV (10,2)]
public class VTCompressionSession : VTSession {
GCHandle callbackHandle;
diff --git a/src/VideoToolbox/VTDecompressionProperties.cs b/src/VideoToolbox/VTDecompressionProperties.cs
index e7752eabadb4..2645d1b63557 100644
--- a/src/VideoToolbox/VTDecompressionProperties.cs
+++ b/src/VideoToolbox/VTDecompressionProperties.cs
@@ -17,14 +17,12 @@
namespace XamCore.VideoToolbox {
public partial class VTDecompressionProperties {
- [Mac (10,8), iOS (8,0)]
public CVPixelBufferPool PixelBufferPool {
get {
return GetNativeValue (VTDecompressionPropertyKey.PixelBufferPool);
}
}
- [Mac (10,8), iOS (8,0)]
public VTFieldMode FieldMode {
get {
var key = GetNSStringValue (VTDecompressionPropertyKey.FieldMode);
@@ -67,7 +65,6 @@ public VTFieldMode FieldMode {
}
}
- [Mac (10,8), iOS (8,0)]
public VTDeinterlaceMode DeinterlaceMode {
get {
var key = GetNSStringValue (VTDecompressionPropertyKey.DeinterlaceMode);
@@ -95,7 +92,6 @@ public VTDeinterlaceMode DeinterlaceMode {
}
}
- [Mac (10,8), iOS (8,0)]
public VTOnlyTheseFrames OnlyTheseFrames {
get {
var key = GetNSStringValue (VTDecompressionPropertyKey.OnlyTheseFrames);
diff --git a/src/VideoToolbox/VTDecompressionSession.cs b/src/VideoToolbox/VTDecompressionSession.cs
index f94e4412db98..aab032f6981f 100644
--- a/src/VideoToolbox/VTDecompressionSession.cs
+++ b/src/VideoToolbox/VTDecompressionSession.cs
@@ -17,7 +17,7 @@
using XamCore.CoreVideo;
namespace XamCore.VideoToolbox {
- [Mac (10,8), iOS (8,0)]
+ [Mac (10,8), iOS (8,0), TV (10,2)]
public class VTDecompressionSession : VTSession {
GCHandle callbackHandle;
diff --git a/src/VideoToolbox/VTFrameSilo.cs b/src/VideoToolbox/VTFrameSilo.cs
index d6ba2c848eb9..a8355ff937d1 100644
--- a/src/VideoToolbox/VTFrameSilo.cs
+++ b/src/VideoToolbox/VTFrameSilo.cs
@@ -16,7 +16,7 @@
using XamCore.CoreMedia;
namespace XamCore.VideoToolbox {
- [Mac (10,10), iOS (8,0)]
+ [Mac (10,10), iOS (8,0), TV (10,2)]
public class VTFrameSilo : INativeObject, IDisposable {
IntPtr handle;
GCHandle callbackHandle;
@@ -76,7 +76,7 @@ public static VTFrameSilo Create (NSUrl fileUrl = null, CMTimeRange? timeRange =
var status = VTFrameSiloCreate (
IntPtr.Zero,
fileUrl == null ? IntPtr.Zero : fileUrl.Handle,
- timeRange ?? CMTimeRange.Invalid,
+ timeRange ?? CMTimeRange.InvalidRange,
IntPtr.Zero,
out ret);
@@ -154,7 +154,7 @@ static VTStatus BufferCallback (IntPtr callbackInfo, IntPtr sampleBufferPtr)
public VTStatus ForEach (Func callback, CMTimeRange? range = null)
{
callbackHandle = GCHandle.Alloc (callback);
- var foreachResult = VTFrameSiloCallFunctionForEachSampleBuffer (handle, range ?? CMTimeRange.Invalid, GCHandle.ToIntPtr (callbackHandle), static_EachSampleBufferCallback);
+ var foreachResult = VTFrameSiloCallFunctionForEachSampleBuffer (handle, range ?? CMTimeRange.InvalidRange, GCHandle.ToIntPtr (callbackHandle), static_EachSampleBufferCallback);
callbackHandle.Free ();
return foreachResult;
}
diff --git a/src/VideoToolbox/VTMultiPassStorage.cs b/src/VideoToolbox/VTMultiPassStorage.cs
index 14da3351db38..0efca965c3ce 100644
--- a/src/VideoToolbox/VTMultiPassStorage.cs
+++ b/src/VideoToolbox/VTMultiPassStorage.cs
@@ -16,7 +16,7 @@
using XamCore.CoreMedia;
namespace XamCore.VideoToolbox {
- [Mac (10,10), iOS (8,0)]
+ [Mac (10,10), iOS (8,0), TV (10,2)]
public class VTMultiPassStorage : INativeObject, IDisposable {
IntPtr handle;
bool closed;
@@ -88,7 +88,7 @@ public static VTMultiPassStorage Create (
var status = VTMultiPassStorageCreate (
IntPtr.Zero,
fileUrl == null ? IntPtr.Zero : fileUrl.Handle,
- timeRange ?? CMTimeRange.Invalid,
+ timeRange ?? CMTimeRange.InvalidRange,
options == null ? IntPtr.Zero : options.Handle,
out ret);
diff --git a/src/VideoToolbox/VTPixelTransferProperties.cs b/src/VideoToolbox/VTPixelTransferProperties.cs
index 4c06ff284f74..f8194365f317 100644
--- a/src/VideoToolbox/VTPixelTransferProperties.cs
+++ b/src/VideoToolbox/VTPixelTransferProperties.cs
@@ -20,7 +20,6 @@
namespace XamCore.VideoToolbox {
public partial class VTPixelTransferProperties : DictionaryContainer {
- [Mac (10,8), iOS (9,0)]
public VTScalingMode ScalingMode {
get {
var key = GetNSStringValue (VTPixelTransferPropertyKeys.ScalingMode);
@@ -58,7 +57,6 @@ public VTScalingMode ScalingMode {
}
}
- [Mac (10,8), iOS (9,0)]
public VTDownsamplingMode DownsamplingMode {
get {
var key = GetNSStringValue (VTPixelTransferPropertyKeys.DownsamplingMode);
@@ -86,8 +84,8 @@ public VTDownsamplingMode DownsamplingMode {
}
}
-#if MONOMAC && XAMCORE_2_0
- [Mac (10,8)]
+#if XAMCORE_2_0
+ [iOS (10,0)]
public VTColorPrimaries DestinationColorPrimaries {
get {
var key = GetNSStringValue (VTPixelTransferPropertyKeys.DestinationColorPrimaries);
@@ -125,8 +123,8 @@ public VTColorPrimaries DestinationColorPrimaries {
}
}
#endif
-#if MONOMAC
- [Mac (10,8)]
+
+ [iOS (10,0)]
public VTTransferFunction DestinationTransferFunction {
get {
var key = GetNSStringValue (VTPixelTransferPropertyKeys.DestinationTransferFunction);
@@ -158,8 +156,7 @@ public VTTransferFunction DestinationTransferFunction {
}
}
}
-#endif
- [Mac (10,8), iOS (9,0)]
+
public VTYCbCrMatrix DestinationYCbCrMatrix {
get {
var key = GetNSStringValue (VTPixelTransferPropertyKeys.DestinationYCbCrMatrix);
diff --git a/src/VideoToolbox/VTPropertyOptions.cs b/src/VideoToolbox/VTPropertyOptions.cs
index bad7ed4b50e7..297f90062922 100644
--- a/src/VideoToolbox/VTPropertyOptions.cs
+++ b/src/VideoToolbox/VTPropertyOptions.cs
@@ -18,7 +18,6 @@
namespace XamCore.VideoToolbox {
public partial class VTPropertyOptions {
- [Mac (10,8), iOS (8,0)]
public VTPropertyType Type {
get {
var key = GetNSStringValue (VTPropertyKeys.Type);
@@ -51,7 +50,6 @@ public VTPropertyType Type {
}
}
- [Mac (10,8), iOS (8,0)]
public VTReadWriteStatus ReadWriteStatus {
get {
var key = GetNSStringValue (VTPropertyKeys.ReadWriteStatus);
diff --git a/src/VideoToolbox/VTSession.cs b/src/VideoToolbox/VTSession.cs
index 5d142ea9ab40..33b826cb0243 100644
--- a/src/VideoToolbox/VTSession.cs
+++ b/src/VideoToolbox/VTSession.cs
@@ -16,7 +16,7 @@
using XamCore.CoreVideo;
namespace XamCore.VideoToolbox {
- [Mac (10,8), iOS (8,0)]
+ [Mac (10,8), iOS (8,0), TV (10,2)]
public class VTSession : INativeObject, IDisposable {
IntPtr handle;
diff --git a/src/VideoToolbox/VTUtilities.cs b/src/VideoToolbox/VTUtilities.cs
index 147b6f3e7a14..5ff292a9816b 100644
--- a/src/VideoToolbox/VTUtilities.cs
+++ b/src/VideoToolbox/VTUtilities.cs
@@ -15,8 +15,8 @@
using XamCore.CoreVideo;
namespace XamCore.VideoToolbox {
+ [Mac (10,11), iOS (9,0), TV (10,2)]
public static class VTUtilities {
- [Mac (10,11), iOS (9,0)]
[DllImport (Constants.VideoToolboxLibrary)]
extern static VTStatus VTCreateCGImageFromCVPixelBuffer (
/* CM_NONNULL CVPixelBufferRef */ IntPtr pixelBuffer,
@@ -26,7 +26,6 @@ extern static VTStatus VTCreateCGImageFromCVPixelBuffer (
// intentionally not exposing the (NSDictionary options) argument
// since header docs indicate that there are no options available
// as of 9.0/10.11 and to always pass NULL
- [Mac (10,11), iOS (9,0)]
public static VTStatus ToCGImage (this CVPixelBuffer pixelBuffer, out CGImage image)
{
if (pixelBuffer == null)
diff --git a/src/VideoToolbox/VTVideoEncoder.cs b/src/VideoToolbox/VTVideoEncoder.cs
index a5ba81274b51..7a1dba649f8d 100644
--- a/src/VideoToolbox/VTVideoEncoder.cs
+++ b/src/VideoToolbox/VTVideoEncoder.cs
@@ -12,7 +12,7 @@
using XamCore.Foundation;
namespace XamCore.VideoToolbox {
- [Mac (10,8), iOS (8,0)]
+ [Mac (10,8), iOS (8,0), TV (10,2)]
public class VTVideoEncoder {
[DllImport (Constants.VideoToolboxLibrary)]
diff --git a/src/WebKit/Enums.cs b/src/WebKit/Enums.cs
index 11603b6d249e..ea8904a06fb6 100644
--- a/src/WebKit/Enums.cs
+++ b/src/WebKit/Enums.cs
@@ -14,7 +14,8 @@ public enum DomCssRuleType : ushort {
Page = 6,
Variables = 7,
WebKitKeyFrames = 8,
- WebKitKeyFrame = 9
+ WebKitKeyFrame = 9,
+ NamespaceRule = 10,
}
public enum DomCssValueType : ushort {
diff --git a/src/appkit.cs b/src/appkit.cs
index 0431838ab11e..dc1c23741f55 100644
--- a/src/appkit.cs
+++ b/src/appkit.cs
@@ -12390,7 +12390,7 @@ partial interface NSRulerView {
bool IsFlipped { get; }
//Detected properties
- [Export ("scrollView")]
+ [Export ("scrollView", ArgumentSemantic.Weak)]
NSScrollView ScrollView { get; set; }
[Export ("orientation")]
@@ -12411,7 +12411,7 @@ partial interface NSRulerView {
[Export ("originOffset")]
nfloat OriginOffset { get; set; }
- [Export ("clientView")]
+ [Export ("clientView", ArgumentSemantic.Weak)]
NSView ClientView { get; set; }
[Export ("markers", ArgumentSemantic.Copy), NullAllowed]
@@ -18912,7 +18912,7 @@ interface NSTrackingArea : NSCoding, NSCopying {
[Export ("userInfo")]
NSDictionary UserInfo { get; }
}
-
+
[BaseType (typeof (NSObject))]
interface NSTreeNode {
[Static, Export ("treeNodeWithRepresentedObject:")]
diff --git a/src/avfoundation.cs b/src/avfoundation.cs
index e8006f3f4fc9..7d38de236579 100644
--- a/src/avfoundation.cs
+++ b/src/avfoundation.cs
@@ -29,6 +29,8 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+using System.ComponentModel;
+
#if !WATCH
using XamCore.AudioUnit;
using XamCore.AVKit;
@@ -1115,7 +1117,7 @@ interface AVAudioPcmBuffer {
IntPtr Int32ChannelData { get; }
}
- [NoWatch]
+ [Watch (3,0)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface AVAudioPlayer {
@@ -1214,19 +1216,20 @@ interface AVAudioPlayer {
[Since (6,0)]
[Export ("channelAssignments", ArgumentSemantic.Copy), NullAllowed]
AVAudioSessionChannelDescription [] ChannelAssignments { get; set; }
-#endif
- [Since (7,0), Mac (10,9), Export ("initWithData:fileTypeHint:error:")]
- IntPtr Constructor (NSData data, [NullAllowed] string fileTypeHint, out NSError outError);
- [Since (7,0), Mac (10,9), Export ("initWithContentsOfURL:fileTypeHint:error:")]
+ [Since (7,0), Export ("initWithContentsOfURL:fileTypeHint:error:")]
IntPtr Constructor (NSUrl url, [NullAllowed] string fileTypeHint, out NSError outError);
- [NoWatch, iOS (10, 0), TV (10,0), Mac (10,12)]
+ [Since (7,0), Export ("initWithData:fileTypeHint:error:")]
+ IntPtr Constructor (NSData data, [NullAllowed] string fileTypeHint, out NSError outError);
+#endif
+
+ [iOS (10, 0), TV (10,0), Mac (10,12)]
[Export ("format")]
AVAudioFormat Format { get; }
}
- [NoWatch]
+ [Watch (3,0)]
[BaseType (typeof (NSObject))]
[Model]
[Protocol]
@@ -1236,7 +1239,7 @@ interface AVAudioPlayerDelegate {
[Export ("audioPlayerDecodeErrorDidOccur:error:")]
void DecoderError (AVAudioPlayer player, [NullAllowed] NSError error);
-
+
#if !MONOMAC
[Availability (Deprecated = Platform.iOS_8_0)]
[Export ("audioPlayerBeginInterruption:")]
@@ -1936,6 +1939,14 @@ interface AVAudioSessionInterruptionEventArgs {
[Export ("AVAudioSessionInterruptionOptionKey")]
AVAudioSessionInterruptionOptions Option { get; }
+
+#if false
+ // https://bugzilla.xamarin.com/show_bug.cgi?id=52730
+ [iOS (10, 3), NoMac, TV (10, 2), Watch (3,2)]
+ [Export ("AVAudioSessionInterruptionWasSuspendedKey")]
+ [return: BindAs (bool?)]
+ NSNumber WasSuspended { get; }
+#endif
}
interface AVAudioSessionRouteChangeEventArgs {
@@ -2623,7 +2634,7 @@ interface AVAsset : NSCopying {
NSString WasDefragmentedNotification { get; }
#endif
- [iOS (10, 3), Mac (10,12,3), TV (10, 3)]
+ [iOS (10, 2), Mac (10,12,2), TV (10, 2)]
[Export ("overallDurationHint")]
CMTime OverallDurationHint { get; }
}
@@ -3599,6 +3610,11 @@ interface AVAssetCache
// 'init' returns NIL
[DisableDefaultCtor]
interface AVUrlAsset {
+
+ [TV (10, 2), Mac (10, 12, 4), iOS (10, 3)]
+ [Export ("mayRequireContentKeysForMediaDataProcessing")]
+ bool MayRequireContentKeysForMediaDataProcessing { get; }
+
[Export ("URL", ArgumentSemantic.Copy)]
NSUrl Url { get; }
@@ -7884,7 +7900,13 @@ interface AVCaptureVideoPreviewLayer {
AVCaptureVideoPreviewLayer FromSession (AVCaptureSession session);
[Export ("initWithSession:")]
- IntPtr Constructor (AVCaptureSession session);
+ [Internal]
+ IntPtr InitWithConnection (AVCaptureSession session);
+
+ [iOS (8,0), Mac (10,2)]
+ [Internal]
+ [Export ("initWithSessionWithNoConnection:")]
+ IntPtr InitWithNoConnection (AVCaptureSession session);
[Since (6,0)]
[Export ("connection")]
@@ -10164,6 +10186,10 @@ interface AVPlayerItemAccessLogEvent : NSCopying {
[Export ("indicatedBitrate")]
double IndicatedBitrate { get; }
+ [iOS (10, 0), TV (10,0), NoWatch, Mac (10, 12)]
+ [Export ("indicatedAverageBitrate")]
+ double IndicatedAverageBitrate { get; }
+
[iOS (10, 0), TV (10,0), Mac (10,12)]
[Export ("averageVideoBitrate")]
double AverageVideoBitrate { get; }
@@ -10515,8 +10541,7 @@ interface AVAudioSettings {
}
[NoWatch]
- [NoTV]
- [iOS (8,0)][Mac (10,10)]
+ [TV (10,2), iOS (8,0), Mac (10,10)]
[BaseType (typeof (CALayer))]
interface AVSampleBufferDisplayLayer {
@@ -10551,14 +10576,15 @@ interface AVSampleBufferDisplayLayer {
[Export ("stopRequestingMediaData")]
void StopRequestingMediaData ();
- [NoTV, iOS (8, 0)]
+ [iOS (8, 0), Mac (10,10)]
[Field ("AVSampleBufferDisplayLayerFailedToDecodeNotification")]
[Notification]
NSString FailedToDecodeNotification { get; }
- [NoTV, iOS (8, 0)]
+ [iOS (8, 0), Mac (10,0)]
[Field ("AVSampleBufferDisplayLayerFailedToDecodeNotificationErrorKey")]
NSString FailedToDecodeNotificationErrorKey { get; }
+
}
[NoWatch]
@@ -11240,4 +11266,178 @@ interface AVContentProposal : NSCopying
IntPtr Constructor (CMTime contentTimeForTransition, string title, [NullAllowed] UIImage previewImage);
}
#endif
+
+ partial interface IAVContentKeySessionDelegate {}
+
+ [TV (10,2), Mac (10,12,4), iOS (10,3), NoWatch]
+ [Protocol, Model]
+ [BaseType (typeof (NSObject))]
+ interface AVContentKeySessionDelegate
+ {
+ [Abstract]
+ [Export ("contentKeySession:didProvideContentKeyRequest:")]
+ void DidProvideContentKeyRequest (AVContentKeySession session, AVContentKeyRequest keyRequest);
+
+ [Export ("contentKeySession:didProvideRenewingContentKeyRequest:")]
+ void DidProvideRenewingContentKeyRequest (AVContentKeySession session, AVContentKeyRequest keyRequest);
+
+ [Export ("contentKeySession:didProvidePersistableContentKeyRequest:")]
+ void DidProvidePersistableContentKeyRequest (AVContentKeySession session, AVPersistableContentKeyRequest keyRequest);
+
+ [Export ("contentKeySession:contentKeyRequest:didFailWithError:")]
+ void DidFail (AVContentKeySession session, AVContentKeyRequest keyRequest, NSError err);
+
+ [Export ("contentKeySession:shouldRetryContentKeyRequest:reason:")]
+ bool ShouldRetryContentKeyRequest (AVContentKeySession session, AVContentKeyRequest keyRequest, string retryReason);
+
+ [Export ("contentKeySessionContentProtectionSessionIdentifierDidChange:")]
+ void DidChange (AVContentKeySession session);
+ }
+
+ partial interface IAVContentKeyRecipient {}
+
+ [TV (10,2), Mac (10,12,4), iOS (10,3), NoWatch]
+ [Protocol]
+ interface AVContentKeyRecipient {
+ [Abstract]
+ [Export ("mayRequireContentKeysForMediaDataProcessing")]
+ bool MayRequireContentKeysForMediaDataProcessing { get; }
+ }
+
+ [TV (10,2), Mac (10,12,4), iOS (10,3), NoWatch]
+ [DisableDefaultCtor]
+ [BaseType (typeof (NSObject))]
+ interface AVContentKeySession {
+ [Static]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("contentKeySessionWithKeySystem:storageDirectoryAtURL:")]
+ AVContentKeySession Create (NSString keySystem, [NullAllowed] NSUrl storageUrl);
+
+ [Static]
+ [Wrap ("Create (keySystem.GetConstant (), storageUrl)")]
+ AVContentKeySession Create (AVContentKeySystem keySystem, [NullAllowed] NSUrl storageUrl);
+
+ [Export ("setDelegate:queue:")]
+ void SetDelegate ([NullAllowed] IAVContentKeySessionDelegate newDelegate, [NullAllowed] DispatchQueue delegateQueue);
+
+ [NullAllowed, Export ("delegate", ArgumentSemantic.Weak)]
+ IAVContentKeySessionDelegate Delegate { get; }
+
+ [NullAllowed, Export ("delegateQueue")]
+ DispatchQueue DelegateQueue { get; }
+
+ [NullAllowed, Export ("storageURL")]
+ NSUrl StorageUrl { get; }
+
+ [Protected]
+ [Export ("keySystem")]
+ NSString KeySystemConstant { get; }
+
+ [Wrap ("AVContentKeySystemExtensions.GetValue (this.KeySystemConstant)")]
+ AVContentKeySystem KeySystem { get; }
+
+ [Export ("expire")]
+ void Expire ();
+
+ [NullAllowed, Export ("contentProtectionSessionIdentifier")]
+ NSData ContentProtectionSessionIdentifier { get; }
+
+ [Export ("processContentKeyRequestWithIdentifier:initializationData:options:")]
+ void ProcessContentKeyRequest ([NullAllowed] NSObject identifier, [NullAllowed] NSData initializationData, [NullAllowed] NSDictionary options);
+
+ [Export ("renewExpiringResponseDataForContentKeyRequest:")]
+ void RenewExpiringResponseData (AVContentKeyRequest contentKeyRequest);
+
+ #region AVContentKeySession_AVContentKeySessionPendingExpiredSessionReports
+
+ // binded because they are static and from a category.
+ [Static]
+ [Export ("pendingExpiredSessionReportsWithAppIdentifier:storageDirectoryAtURL:")]
+ NSDictionary[] GetPendingExpiredSessionReports (NSData appIdentifier, NSUrl storageUrl);
+
+ [Static]
+ [Export ("removePendingExpiredSessionReports:withAppIdentifier:storageDirectoryAtURL:")]
+ void RemovePendingExpiredSessionReports (NSDictionary[] expiredSessionReports, NSData appIdentifier, NSUrl storageUrl);
+
+ #endregion
+ }
+
+ [TV (10,2), Mac (10,12,4), iOS (10,3), NoWatch]
+ [Category]
+ [BaseType (typeof(AVContentKeySession))]
+ interface AVContentKeySession_AVContentKeyRecipients
+ {
+ [Export ("addContentKeyRecipient:")]
+ void Add (IAVContentKeyRecipient recipient);
+
+ [Export ("removeContentKeyRecipient:")]
+ void Remove (IAVContentKeyRecipient recipient);
+
+ [Export ("contentKeyRecipients")]
+ IAVContentKeyRecipient[] GetContentKeyRecipients ();
+ }
+
+ [TV (10,2), Mac (10,12,4), iOS (10,3), NoWatch]
+ [DisableDefaultCtor]
+ [BaseType (typeof (NSObject))]
+ interface AVContentKeyRequest {
+ [Field ("AVContentKeyRequestProtocolVersionsKey")]
+ NSString ProtocolVersions { get; }
+
+ [Export ("status")]
+ AVContentKeyRequestStatus Status { get; }
+
+ [NullAllowed, Export ("error")]
+ NSError Error { get; }
+
+ [NullAllowed, Export ("identifier")]
+ NSObject Identifier { get; }
+
+ [NullAllowed, Export ("initializationData")]
+ NSData InitializationData { get; }
+
+ [Export ("canProvidePersistableContentKey")]
+ bool CanProvidePersistableContentKey { get; }
+
+ [Async]
+ [Export ("makeStreamingContentKeyRequestDataForApp:contentIdentifier:options:completionHandler:")]
+ void MakeStreamingContentKeyRequestData (NSData appIdentifier, [NullAllowed] NSData contentIdentifier, [NullAllowed] NSDictionary options, Action handler);
+
+ [Export ("processContentKeyResponse:")]
+ void Process (AVContentKeyResponse keyResponse);
+
+ [Export ("processContentKeyResponseError:")]
+ void Process (NSError error);
+
+ [Export ("respondByRequestingPersistableContentKeyRequest")]
+ void RespondByRequestingPersistableContentKeyRequest ();
+ }
+
+ [Category]
+ [Mac (10, 12, 4), iOS (10,3), TV (10, 2), NoWatch]
+ [BaseType (typeof(AVContentKeyRequest))]
+ interface AVContentKeyRequest_AVContentKeyRequestRenewal
+ {
+ [Export ("renewsExpiringResponseData")]
+ bool GetRenewsExpiringResponseData ();
+ }
+
+ [TV (10,2), Mac (10,12,4), iOS (10,3), NoWatch]
+ [DisableDefaultCtor]
+ [BaseType (typeof (AVContentKeyRequest))]
+ interface AVPersistableContentKeyRequest {
+ [Export ("persistableContentKeyFromKeyVendorResponse:options:error:")]
+ NSData GetPersistableContentKey (NSData keyVendorResponse, [NullAllowed] NSDictionary options, out NSError outError);
+
+ }
+
+ [TV (10,2), Mac (10,12,4), iOS (10,3), NoWatch]
+ [DisableDefaultCtor]
+ [BaseType (typeof (NSObject))]
+ interface AVContentKeyResponse {
+ [Static]
+ [Export ("contentKeyResponseWithFairPlayStreamingKeyResponseData:")]
+ AVContentKeyResponse Create (NSData fairPlayStreamingKeyResponseData);
+ }
+
}
diff --git a/src/callkit.cs b/src/callkit.cs
index eda9e7fde55e..1786e5a822a6 100644
--- a/src/callkit.cs
+++ b/src/callkit.cs
@@ -66,7 +66,8 @@ public enum CXErrorCodeCallDirectoryManagerError : nint {
EntriesOutOfOrder = 3,
DuplicateEntries = 4,
MaximumEntriesExceeded = 5,
- ExtensionDisabled = 6
+ ExtensionDisabled = 6,
+ CurrentlyLoading = 7,
}
[Introduced (PlatformName.iOS, 10, 0)]
diff --git a/src/cloudkit.cs b/src/cloudkit.cs
index 5c120effa47b..b89cf72d0958 100644
--- a/src/cloudkit.cs
+++ b/src/cloudkit.cs
@@ -230,7 +230,7 @@ interface CKContainer {
[Async]
void FetchUserRecordId (Action completionHandler);
- [iOS (10,0), TV (10,0), Mac (10,12)]
+ [iOS (10,0)][Mac (10,12)]
[NoTV]
[Export ("discoverAllIdentitiesWithCompletionHandler:")]
[Async]
@@ -488,7 +488,6 @@ interface CKErrorFields {
}
[iOS (8,0), Watch (3,0), TV (10,0), Mac (10,10, onlyOn64 : true)]
- [DisableDefaultCtor] // does not work on watchOS, working stub provided to ease source compatibility
[BaseType (typeof (CKOperation))]
interface CKFetchNotificationChangesOperation {
[Export ("initWithPreviousServerChangeToken:")]
@@ -1519,16 +1518,9 @@ interface CKQueryCursor : NSCopying, NSSecureCoding {
[iOS (9,2), Mac (10,11,2, onlyOn64 : true)]
[TV (9,1)]
[Watch (3,0)]
-#if WATCH // does not work on watchOS - existiong init* does not allow null to be used to fake it
- [DisableDefaultCtor]
-#endif
[BaseType (typeof (CKDatabaseOperation))]
interface CKFetchWebAuthTokenOperation {
-#if WATCH
- // it might be because Xcode 8.2 headers were not updated for watchOS *or* because `init` does not work
- [DesignatedInitializer]
-#endif
[Export ("initWithAPIToken:")]
IntPtr Constructor (string token);
diff --git a/src/contacts.cs b/src/contacts.cs
index 40276d5e507b..638f284f04de 100644
--- a/src/contacts.cs
+++ b/src/contacts.cs
@@ -889,10 +889,20 @@ interface CNMutablePostalAddress {
[Export ("street")]
string Street { get; set; }
+ [iOS (10,3), Mac (10,12,4, onlyOn64: true)]
+ [New]
+ [Export ("subLocality")]
+ string SubLocality { get; set; }
+
[New]
[Export ("city")]
string City { get; set; }
+ [iOS (10,3), Mac (10,12,4, onlyOn64: true)]
+ [New]
+ [Export ("subAdministrativeArea")]
+ string SubAdministrativeArea { get; set; }
+
[New]
[Export ("state")]
string State { get; set; }
@@ -962,9 +972,17 @@ interface CNPostalAddress : NSCopying, NSMutableCopying, NSSecureCoding, INSCopy
[Export ("street")]
string Street { get; }
+ [iOS (10,3)] [Mac (10,12,4, onlyOn64: true)]
+ [Export ("subLocality")]
+ string SubLocality { get; }
+
[Export ("city")]
string City { get; }
+ [iOS (10,3)] [Mac (10,12,4, onlyOn64: true)]
+ [Export ("subAdministrativeArea")]
+ string SubAdministrativeArea { get; }
+
[Export ("state")]
string State { get; }
@@ -990,9 +1008,17 @@ interface CNPostalAddressKey { // Can be used in KVO
[Field ("CNPostalAddressStreetKey")]
NSString Street { get; }
+ [iOS (10,3)] [Mac (10,12,4, onlyOn64: true)]
+ [Field ("CNPostalAddressSubLocalityKey")]
+ NSString SubLocality { get; }
+
[Field ("CNPostalAddressCityKey")]
NSString City { get; }
+ [iOS (10,3)] [Mac (10,12,4, onlyOn64: true)]
+ [Field ("CNPostalAddressSubAdministrativeAreaKey")]
+ NSString SubAdministrativeArea { get; }
+
[Field ("CNPostalAddressStateKey")]
NSString State { get; }
diff --git a/src/foundation.cs b/src/foundation.cs
index 9507edb6a632..fb9708d42caf 100644
--- a/src/foundation.cs
+++ b/src/foundation.cs
@@ -601,14 +601,20 @@ interface NSCalendar : NSSecureCoding, NSCopying {
[Export ("components:fromDate:toDate:options:")]
NSDateComponents Components (NSCalendarUnit unitFlags, NSDate fromDate, NSDate toDate, NSCalendarOptions opts);
+#if !XAMCORE_4_0
+ [Obsolete ("Use the overload with a NSCalendarOptions parameter")]
[Wrap ("Components (unitFlags, fromDate, toDate, (NSCalendarOptions) opts)")]
NSDateComponents Components (NSCalendarUnit unitFlags, NSDate fromDate, NSDate toDate, NSDateComponentsWrappingBehavior opts);
+#endif
[Export ("dateByAddingComponents:toDate:options:")]
NSDate DateByAddingComponents (NSDateComponents comps, NSDate date, NSCalendarOptions opts);
+#if !XAMCORE_4_0
+ [Obsolete ("Use the overload with a NSCalendarOptions parameter")]
[Wrap ("DateByAddingComponents (comps, date, (NSCalendarOptions) opts)")]
NSDate DateByAddingComponents (NSDateComponents comps, NSDate date, NSDateComponentsWrappingBehavior opts);
+#endif
[Export ("dateFromComponents:")]
NSDate DateFromComponents (NSDateComponents comps);
diff --git a/src/frameworks.sources b/src/frameworks.sources
index 2a0f4d137d23..f8723d5c3945 100644
--- a/src/frameworks.sources
+++ b/src/frameworks.sources
@@ -240,6 +240,7 @@ AVFOUNDATION_SOURCES = \
AVFoundation/AVCaptureFileOutput.cs \
AVFoundation/AVCaptureMetadataOutput.cs \
AVFoundation/AVCaptureVideoDataOutput.cs \
+ AVFoundation/AVCaptureVideoPreviewLayer.cs \
AVFoundation/AVCompat.cs \
AVFoundation/AVFragmentedAsset.cs \
AVFoundation/AVFragmentedAssetTrack.cs \
@@ -829,9 +830,12 @@ IMAGEKIT_CORE_SOURCES = \
INTENTS_SOURCES = \
Intents/INCompat.cs \
+ Intents/INGetCarLockStatusIntentResponse.cs \
+ Intents/INGetCarPowerLevelStatusIntentResponse.cs \
Intents/INIntentResolutionResult.cs \
Intents/INPriceRange.cs \
Intents/INRideOption.cs \
+ Intents/INSetCarLockStatusIntent.cs \
Intents/INSetClimateSettingsInCarIntent.cs \
Intents/INSetDefrosterSettingsInCarIntent.cs \
Intents/INSetProfileInCarIntent.cs \
@@ -1148,6 +1152,7 @@ SCENEKIT_SOURCES = \
SceneKit/SCNParticleSystem.cs \
SceneKit/SCNPhysicsShape.cs \
SceneKit/SCNPhysicsTest.cs \
+ SceneKit/SCNRenderer.cs \
SceneKit/SCNRenderingOptions.cs \
SceneKit/SCNScene.cs \
SceneKit/SCNSceneLoadingOptions.cs \
@@ -1678,6 +1683,7 @@ WATCHOS_FRAMEWORKS = \
HealthKit \
HomeKit \
ImageIO \
+ Intents \
MapKit \
MobileCoreServices \
PassKit \
@@ -1735,6 +1741,7 @@ TVOS_FRAMEWORKS = \
UIKit \
UserNotifications \
VideoSubscriberAccount \
+ VideoToolbox \
#
# Compute the SOURCES variables.
diff --git a/src/generator.cs b/src/generator.cs
index 91545ce7d5f3..9cdc9d39144e 100644
--- a/src/generator.cs
+++ b/src/generator.cs
@@ -2557,15 +2557,19 @@ void GenerateStrongDictionaryTypes ()
print ("namespace {0} {{", dictType.Namespace);
indent++;
+ PrintPlatformAttributes (dictType);
print ("public partial class {0} : DictionaryContainer {{", typeName);
indent++;
sw.WriteLine ("#if !COREBUILD");
print ("[Preserve (Conditional = true)]");
print ("public {0} () : base (new NSMutableDictionary ()) {{}}\n", typeName);
print ("[Preserve (Conditional = true)]");
- print ("public {0} (NSDictionary dictionary) : base (dictionary) {{}}", typeName);
+ print ("public {0} (NSDictionary dictionary) : base (dictionary) {{}}\n", typeName);
foreach (var pi in dictType.GatherProperties ()){
+ if (pi.IsUnavailable ())
+ continue;
+
string keyname;
object [] attrs = AttributeManager.GetCustomAttributes (pi, TypeManager.ExportAttribute, true);
if (attrs.Length == 0)
@@ -2576,6 +2580,7 @@ void GenerateStrongDictionaryTypes ()
keyname = keyContainerType + "." + keyname;
}
+ PrintPlatformAttributes (pi);
string modifier = pi.IsInternal () ? "internal" : "public";
print (modifier + " {0}{1} {2} {{",
@@ -4920,7 +4925,7 @@ group fullname by ns into g
}
foreach (var deltype in group.Fullname.OrderBy (v => v, StringComparer.Ordinal)) {
- int p = deltype.LastIndexOf ('.');
+ int p = deltype.LastIndexOf (".", StringComparison.Ordinal);
var shortName = deltype.Substring (p+1);
var mi = delegateTypes [deltype];
diff --git a/src/iAd/iAd.cs b/src/iAd/iAd.cs
index 0f794bc5bc8c..7477cd8f2c47 100644
--- a/src/iAd/iAd.cs
+++ b/src/iAd/iAd.cs
@@ -25,6 +25,8 @@ public enum ADError : nint {
ApplicationInactive,
AdUnloaded,
AssetLoadFailure,
+ AdResponseValidateFailure,
+ AdAssetLoadPending,
}
// NSInteger -> ADBannerView.h
diff --git a/src/imageio.cs b/src/imageio.cs
index 2b0e2c293974..6f4ee0134ede 100644
--- a/src/imageio.cs
+++ b/src/imageio.cs
@@ -171,10 +171,9 @@ interface CGImageProperties {
NSString ExifSubsecTime { get; }
[Field ("kCGImagePropertyExifSubsecTimeOrginal")]
NSString ExifSubsecTimeOrginal { get; }
- // typo fixed in the iOS9 beta 1 headers but we can't load that "fixed" name from the library
- // it looks like someone fixed only half of the problem... radar #22311329
- //[Field ("kCGImagePropertyExifSubsecTimeOriginal")]
- //NSString ExifSubsecTimeOriginal { get; }
+ [iOS (10,0)][Mac (10,11)]
+ [Field ("kCGImagePropertyExifSubsecTimeOriginal")]
+ NSString ExifSubsecTimeOriginal { get; }
[Field ("kCGImagePropertyExifSubsecTimeDigitized")]
NSString ExifSubsecTimeDigitized { get; }
[Field ("kCGImagePropertyExifFlashPixVersion")]
diff --git a/src/intents.cs b/src/intents.cs
index a069df44e7a1..491277f80d52 100644
--- a/src/intents.cs
+++ b/src/intents.cs
@@ -26,6 +26,7 @@ namespace XamCore.Intents {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Native]
public enum INBookRestaurantReservationIntentCode : nint {
Success = 0,
@@ -38,6 +39,7 @@ public enum INBookRestaurantReservationIntentCode : nint {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Native]
[Flags]
public enum INCallCapabilityOptions : nuint {
@@ -47,6 +49,7 @@ public enum INCallCapabilityOptions : nuint {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Native]
public enum INCallRecordType : nint {
Unknown = 0,
@@ -56,6 +59,7 @@ public enum INCallRecordType : nint {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Native]
public enum INCancelWorkoutIntentResponseCode : nint {
@@ -98,7 +102,8 @@ public enum INCarAudioSource : nint {
public enum INCarDefroster : nint {
Unknown = 0,
Front,
- Rear
+ Rear,
+ All,
}
[Introduced (PlatformName.iOS, 10, 0)]
@@ -116,11 +121,13 @@ public enum INCarSeat : nint {
Rear,
ThirdRowLeft,
ThirdRowRight,
- ThirdRow
+ ThirdRow,
+ All
}
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Native]
public enum INConditionalOperator : nint {
All = 0,
@@ -129,6 +136,7 @@ public enum INConditionalOperator : nint {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Native]
public enum INEndWorkoutIntentResponseCode : nint {
@@ -168,6 +176,7 @@ public enum INGetRestaurantGuestIntentResponseCode : nint {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Native]
public enum INGetRideStatusIntentResponseCode : nint {
@@ -193,6 +202,7 @@ public enum INGetUserCurrentRestaurantReservationBookingsIntentResponseCode : ni
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Native]
[ErrorDomain ("INIntentErrorDomain")]
public enum INIntentErrorCode : nint {
@@ -206,11 +216,14 @@ public enum INIntentErrorCode : nint {
NoHandlerProvidedForIntent = 2003,
InvalidIntentName = 2004,
RequestTimedOut = 3001,
- InvalidUserVocabularyFileLocation = 4000
+ InvalidUserVocabularyFileLocation = 4000,
+ ExtensionLaunchingTimeout = 5000,
+ ExtensionBringUpFailed = 5001,
}
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Native]
public enum INIntentHandlingStatus : nint {
Unspecified = 0,
@@ -223,6 +236,7 @@ public enum INIntentHandlingStatus : nint {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Native]
public enum INInteractionDirection : nint {
Unspecified = 0,
@@ -231,6 +245,7 @@ public enum INInteractionDirection : nint {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Native]
public enum INListRideOptionsIntentResponseCode : nint {
@@ -248,6 +263,7 @@ public enum INListRideOptionsIntentResponseCode : nint {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Native]
public enum INMessageAttribute : nint {
Unknown = 0,
@@ -259,6 +275,7 @@ public enum INMessageAttribute : nint {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Native]
[Flags]
public enum INMessageAttributeOptions : nuint {
@@ -269,6 +286,7 @@ public enum INMessageAttributeOptions : nuint {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Native]
public enum INPauseWorkoutIntentResponseCode : nint {
@@ -281,6 +299,7 @@ public enum INPauseWorkoutIntentResponseCode : nint {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Native]
public enum INPaymentMethodType : nint {
@@ -296,6 +315,7 @@ public enum INPaymentMethodType : nint {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Native]
public enum INPaymentStatus : nint {
@@ -303,7 +323,8 @@ public enum INPaymentStatus : nint {
Pending,
Completed,
Canceled,
- Failed
+ Failed,
+ Unpaid
}
[Native]
@@ -313,6 +334,7 @@ public enum INPersonSuggestionType : nint {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)] // xtro mac !unknown-native-enum! INPhotoAttributeOptions bound
[Native]
[Flags]
@@ -376,6 +398,7 @@ public enum INRelativeSetting : nint {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Native]
public enum INRequestPaymentIntentResponseCode : nint {
@@ -393,6 +416,7 @@ public enum INRequestPaymentIntentResponseCode : nint {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Native]
public enum INRequestRideIntentResponseCode : nint {
@@ -418,6 +442,7 @@ public enum INRestaurantReservationUserBookingStatus : nuint {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Native]
public enum INResumeWorkoutIntentResponseCode : nint {
@@ -430,6 +455,7 @@ public enum INResumeWorkoutIntentResponseCode : nint {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Native]
public enum INRidePhase : nint {
@@ -444,6 +470,7 @@ public enum INRidePhase : nint {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Native]
public enum INSaveProfileInCarIntentResponseCode : nint {
Unspecified = 0,
@@ -456,6 +483,7 @@ public enum INSaveProfileInCarIntentResponseCode : nint {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Native]
public enum INSearchCallHistoryIntentResponseCode : nint {
Unspecified = 0,
@@ -470,6 +498,7 @@ public enum INSearchCallHistoryIntentResponseCode : nint {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Native]
public enum INSearchForMessagesIntentResponseCode : nint {
Unspecified = 0,
@@ -482,6 +511,7 @@ public enum INSearchForMessagesIntentResponseCode : nint {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Native]
public enum INSearchForPhotosIntentResponseCode : nint {
@@ -497,6 +527,7 @@ public enum INSearchForPhotosIntentResponseCode : nint {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Native]
public enum INSendMessageIntentResponseCode : nint {
Unspecified = 0,
@@ -509,6 +540,7 @@ public enum INSendMessageIntentResponseCode : nint {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Native]
public enum INSendPaymentIntentResponseCode : nint {
@@ -528,6 +560,7 @@ public enum INSendPaymentIntentResponseCode : nint {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Native]
public enum INSetAudioSourceInCarIntentResponseCode : nint {
Unspecified = 0,
@@ -540,6 +573,7 @@ public enum INSetAudioSourceInCarIntentResponseCode : nint {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Native]
public enum INSetClimateSettingsInCarIntentResponseCode : nint {
Unspecified = 0,
@@ -552,6 +586,7 @@ public enum INSetClimateSettingsInCarIntentResponseCode : nint {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Native]
public enum INSetDefrosterSettingsInCarIntentResponseCode : nint {
Unspecified = 0,
@@ -564,6 +599,7 @@ public enum INSetDefrosterSettingsInCarIntentResponseCode : nint {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Unavailable (PlatformName.WatchOS)]
[Native]
public enum INSetMessageAttributeIntentResponseCode : nint {
Unspecified = 0,
@@ -578,6 +614,7 @@ public enum INSetMessageAttributeIntentResponseCode : nint {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Native]
public enum INSetProfileInCarIntentResponseCode : nint {
Unspecified = 0,
@@ -590,6 +627,7 @@ public enum INSetProfileInCarIntentResponseCode : nint {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Native]
public enum INSetRadioStationIntentResponseCode : nint {
Unspecified = 0,
@@ -603,6 +641,7 @@ public enum INSetRadioStationIntentResponseCode : nint {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Native]
public enum INSetSeatSettingsInCarIntentResponseCode : nint {
Unspecified = 0,
@@ -614,6 +653,7 @@ public enum INSetSeatSettingsInCarIntentResponseCode : nint {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Native]
public enum INSiriAuthorizationStatus : nint {
@@ -625,6 +665,7 @@ public enum INSiriAuthorizationStatus : nint {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Native]
public enum INStartAudioCallIntentResponseCode : nint {
Unspecified = 0,
@@ -641,6 +682,7 @@ public enum INStartAudioCallIntentResponseCode : nint {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Native]
public enum INStartPhotoPlaybackIntentResponseCode : nint {
@@ -655,6 +697,7 @@ public enum INStartPhotoPlaybackIntentResponseCode : nint {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Unavailable (PlatformName.WatchOS)]
[Native]
public enum INStartVideoCallIntentResponseCode : nint {
Unspecified = 0,
@@ -671,6 +714,7 @@ public enum INStartVideoCallIntentResponseCode : nint {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Native]
public enum INStartWorkoutIntentResponseCode : nint {
@@ -685,6 +729,7 @@ public enum INStartWorkoutIntentResponseCode : nint {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Native]
public enum INVocabularyStringType : nint {
ContactName = 1,
@@ -692,10 +737,17 @@ public enum INVocabularyStringType : nint {
PhotoTag = 100,
PhotoAlbumName,
WorkoutActivityName = 200,
- CarProfileName = 300
+ CarProfileName = 300,
+ [Introduced (PlatformName.iOS, 10, 3)]
+ CarName,
+ [Introduced (PlatformName.iOS, 10, 3)]
+ PaymentsOrganizationName = 400,
+ [Introduced (PlatformName.iOS, 10, 3)]
+ PaymentsAccountNickname,
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)] // xtro mac !unknown-native-enum! INWorkoutGoalUnitType bound
[Native]
public enum INWorkoutGoalUnitType : nint {
@@ -713,6 +765,7 @@ public enum INWorkoutGoalUnitType : nint {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)] // xtro mac !unknown-native-enum! INWorkoutLocationType bound
[Native]
public enum INWorkoutLocationType : nint {
@@ -723,6 +776,7 @@ public enum INWorkoutLocationType : nint {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Native]
public enum INPersonHandleType : nint {
Unknown = 0,
@@ -730,14 +784,164 @@ public enum INPersonHandleType : nint {
PhoneNumber
}
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [Native]
+ public enum INAccountType : nint {
+ Unknown = 0,
+ Checking,
+ Credit,
+ Debit,
+ Investment,
+ Mortgage,
+ Prepaid,
+ Saving,
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [Native]
+ public enum INActivateCarSignalIntentResponseCode : nint {
+ Unspecified = 0,
+ Ready,
+ InProgress,
+ Success,
+ Failure,
+ FailureRequiringAppLaunch,
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [Native]
+ public enum INAmountType : nint {
+ Unknown = 0,
+ MinimumDue,
+ AmountDue,
+ CurrentBalance,
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [Native]
+ public enum INBillType : nint {
+ Unknown = 0,
+ AutoInsurance,
+ Cable,
+ CarLease,
+ CarLoan,
+ CreditCard,
+ Electricity,
+ Gas,
+ GarbageAndRecycling,
+ HealthInsurance,
+ HomeInsurance,
+ Internet,
+ LifeInsurance,
+ Mortgage,
+ MusicStreaming,
+ Phone,
+ Rent,
+ Sewer,
+ StudentLoan,
+ TrafficTicket,
+ Tuition,
+ Utilities,
+ Water,
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [Native]
+ [Flags]
+ public enum INCarSignalOptions : nuint {
+ Audible = (1 << 0),
+ Visible = (1 << 1),
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [Native]
+ public enum INGetCarLockStatusIntentResponseCode : nint {
+ Unspecified = 0,
+ Ready,
+ InProgress,
+ Success,
+ Failure,
+ FailureRequiringAppLaunch,
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [Native]
+ public enum INGetCarPowerLevelStatusIntentResponseCode : nint {
+ Unspecified = 0,
+ Ready,
+ InProgress,
+ Success,
+ Failure,
+ FailureRequiringAppLaunch,
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [Native]
+ public enum INPayBillIntentResponseCode : nint {
+ Unspecified = 0,
+ Ready,
+ InProgress,
+ Success,
+ Failure,
+ FailureRequiringAppLaunch,
+ FailureCredentialsUnverified,
+ FailureInsufficientFunds,
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [Native]
+ public enum INSearchForBillsIntentResponseCode : nint {
+ Unspecified = 0,
+ Ready,
+ InProgress,
+ Success,
+ Failure,
+ FailureRequiringAppLaunch,
+ FailureCredentialsUnverified,
+ FailureBillNotFound,
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [Native]
+ public enum INSetCarLockStatusIntentResponseCode : nint {
+ Unspecified = 0,
+ Ready,
+ InProgress,
+ Success,
+ Failure,
+ FailureRequiringAppLaunch,
+ }
+
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
public enum INIntentIdentifier {
[Unavailable (PlatformName.MacOSX)]
[Field ("INStartAudioCallIntentIdentifier")]
StartAudioCall,
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Field ("INStartVideoCallIntentIdentifier")]
StartVideoCall,
@@ -746,26 +950,32 @@ public enum INIntentIdentifier {
SearchCallHistory,
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Field ("INSetAudioSourceInCarIntentIdentifier")]
SetAudioSourceInCar,
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Field ("INSetClimateSettingsInCarIntentIdentifier")]
SetClimateSettingsInCar,
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Field ("INSetDefrosterSettingsInCarIntentIdentifier")]
SetDefrosterSettingsInCar,
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Field ("INSetSeatSettingsInCarIntentIdentifier")]
SetSeatSettingsInCar,
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Field ("INSetProfileInCarIntentIdentifier")]
SetProfileInCar,
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Field ("INSaveProfileInCarIntentIdentifier")]
SaveProfileInCar,
@@ -790,6 +1000,7 @@ public enum INIntentIdentifier {
ResumeWorkout,
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Field ("INSetRadioStationIntentIdentifier")]
SetRadioStation,
@@ -802,6 +1013,7 @@ public enum INIntentIdentifier {
SearchForMessages,
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Field ("INSetMessageAttributeIntentIdentifier")]
SetMessageAttribute,
@@ -836,6 +1048,7 @@ public enum INIntentIdentifier {
[Introduced (PlatformName.iOS, 10, 2)]
[Introduced (PlatformName.MacOSX, 10, 12, 2, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
enum INPersonHandleLabel {
[Field (null)]
None,
@@ -870,6 +1083,7 @@ enum INPersonHandleLabel {
[Introduced (PlatformName.iOS, 10, 2)]
[Introduced (PlatformName.MacOSX, 10, 12, 2, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
enum INPersonRelationship {
[Field (null)]
None,
@@ -909,6 +1123,7 @@ enum INPersonRelationship {
}
[Introduced (PlatformName.iOS, 10, 2)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
enum INWorkoutNameIdentifier {
[Field ("INWorkoutNameIdentifierRun")]
@@ -969,6 +1184,7 @@ enum INWorkoutNameIdentifier {
// End of enums
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Internal]
[Category]
@@ -982,6 +1198,7 @@ interface CLPlacemark_INIntentsAdditions {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntent))]
interface INBookRestaurantReservationIntent : NSCopying {
@@ -1009,6 +1226,7 @@ interface INBookRestaurantReservationIntent : NSCopying {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Protocol]
interface INBookRestaurantReservationIntentHandling {
@@ -1037,6 +1255,7 @@ interface INBookRestaurantReservationIntentHandling {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntentResponse))]
interface INBookRestaurantReservationIntentResponse {
@@ -1051,6 +1270,7 @@ interface INBookRestaurantReservationIntentResponse {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntentResolutionResult))]
[DisableDefaultCtor]
@@ -1085,6 +1305,7 @@ interface INBooleanResolutionResult {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[BaseType (typeof (INIntentResolutionResult))]
[DisableDefaultCtor]
interface INCallRecordTypeResolutionResult {
@@ -1117,6 +1338,7 @@ interface INCallRecordTypeResolutionResult {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntent))]
interface INCancelWorkoutIntent {
@@ -1130,6 +1352,7 @@ interface INCancelWorkoutIntent {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Protocol]
interface INCancelWorkoutIntentHandling {
@@ -1146,6 +1369,7 @@ interface INCancelWorkoutIntentHandling {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
@@ -1292,6 +1516,7 @@ interface INCarSeatResolutionResult {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
@@ -1309,6 +1534,7 @@ interface INCurrencyAmount : NSCopying, NSSecureCoding {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntentResolutionResult))]
[DisableDefaultCtor]
@@ -1347,6 +1573,7 @@ interface INCurrencyAmountResolutionResult {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface INDateComponentsRange : NSCopying, NSSecureCoding {
@@ -1364,6 +1591,7 @@ interface INDateComponentsRange : NSCopying, NSSecureCoding {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[BaseType (typeof (INIntentResolutionResult))]
[DisableDefaultCtor]
interface INDateComponentsRangeResolutionResult {
@@ -1401,17 +1629,32 @@ interface INDateComponentsRangeResolutionResult {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Protocol]
+ interface INCallsDomainHandling : INStartAudioCallIntentHandling, INSearchCallHistoryIntentHandling
+#if !WATCH
+ , INStartVideoCallIntentHandling {
+#else
+ {
+#endif
+ }
+
+ [Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
[Protocol]
- interface INCallsDomainHandling : INStartAudioCallIntentHandling, INStartVideoCallIntentHandling, INSearchCallHistoryIntentHandling {
+ interface INCarCommandsDomainHandling : INActivateCarSignalIntentHandling, INSetCarLockStatusIntentHandling, INGetCarLockStatusIntentHandling, INGetCarPowerLevelStatusIntentHandling {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Unavailable (PlatformName.WatchOS)]
[Unavailable (PlatformName.MacOSX)]
[Protocol]
interface INCarPlayDomainHandling : INSetAudioSourceInCarIntentHandling, INSetClimateSettingsInCarIntentHandling, INSetDefrosterSettingsInCarIntentHandling, INSetSeatSettingsInCarIntentHandling, INSetProfileInCarIntentHandling, INSaveProfileInCarIntentHandling {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Protocol]
interface INWorkoutsDomainHandling : INStartWorkoutIntentHandling, INPauseWorkoutIntentHandling, INEndWorkoutIntentHandling, INCancelWorkoutIntentHandling, INResumeWorkoutIntentHandling {
@@ -1419,35 +1662,46 @@ interface INWorkoutsDomainHandling : INStartWorkoutIntentHandling, INPauseWorkou
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Protocol]
interface INRadioDomainHandling : INSetRadioStationIntentHandling {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Protocol]
- interface INMessagesDomainHandling : INSendMessageIntentHandling, INSearchForMessagesIntentHandling, INSetMessageAttributeIntentHandling {
+ interface INMessagesDomainHandling : INSendMessageIntentHandling, INSearchForMessagesIntentHandling
+#if !WATCH
+ , INSetMessageAttributeIntentHandling {
+#else
+ {
+#endif
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
- [Protocol]
- interface INPaymentsDomainHandling : INSendPaymentIntentHandling, INRequestPaymentIntentHandling {
+ [Protocol]
+ interface INPaymentsDomainHandling : INSendPaymentIntentHandling, INRequestPaymentIntentHandling, INPayBillIntentHandling, INSearchForBillsIntentHandling {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Protocol]
interface INPhotosDomainHandling : INSearchForPhotosIntentHandling, INStartPhotoPlaybackIntentHandling {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Protocol]
interface INRidesharingDomainHandling : INListRideOptionsIntentHandling, INRequestRideIntentHandling, INGetRideStatusIntentHandling {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntentResolutionResult))]
[DisableDefaultCtor]
@@ -1481,6 +1735,7 @@ interface INDoubleResolutionResult {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[DisableDefaultCtor]
[BaseType (typeof (INIntentResolutionResult))]
@@ -1518,6 +1773,7 @@ interface INDateComponentsResolutionResult {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntent))]
interface INEndWorkoutIntent {
@@ -1531,6 +1787,7 @@ interface INEndWorkoutIntent {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Protocol]
interface INEndWorkoutIntentHandling {
@@ -1547,6 +1804,7 @@ interface INEndWorkoutIntentHandling {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
@@ -1572,6 +1830,7 @@ interface INIntentHandlerProviding {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (NSObject))]
interface INExtension : INIntentHandlerProviding {
@@ -1579,6 +1838,7 @@ interface INExtension : INIntentHandlerProviding {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntent))]
interface INGetAvailableRestaurantReservationBookingDefaultsIntent {
@@ -1588,6 +1848,7 @@ interface INGetAvailableRestaurantReservationBookingDefaultsIntent {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Protocol]
interface INGetAvailableRestaurantReservationBookingDefaultsIntentHandling {
@@ -1604,6 +1865,7 @@ interface INGetAvailableRestaurantReservationBookingDefaultsIntentHandling {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntentResponse))]
interface INGetAvailableRestaurantReservationBookingDefaultsIntentResponse {
@@ -1632,6 +1894,7 @@ interface INGetAvailableRestaurantReservationBookingDefaultsIntentResponse {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntent))]
interface INGetAvailableRestaurantReservationBookingsIntent : NSCopying {
@@ -1656,6 +1919,7 @@ interface INGetAvailableRestaurantReservationBookingsIntent : NSCopying {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Protocol]
interface INGetAvailableRestaurantReservationBookingsIntentHandling {
@@ -1678,6 +1942,7 @@ interface INGetAvailableRestaurantReservationBookingsIntentHandling {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntentResponse))]
interface INGetAvailableRestaurantReservationBookingsIntentResponse {
@@ -1703,12 +1968,14 @@ interface INGetAvailableRestaurantReservationBookingsIntentResponse {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntent))]
interface INGetRestaurantGuestIntent {
}
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Protocol]
interface INGetRestaurantGuestIntentHandling {
@@ -1722,6 +1989,7 @@ interface INGetRestaurantGuestIntentHandling {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntentResponse))]
interface INGetRestaurantGuestIntentResponse {
@@ -1740,12 +2008,14 @@ interface INGetRestaurantGuestIntentResponse {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntent))]
interface INGetRideStatusIntent {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Protocol]
interface INGetRideStatusIntentHandling {
@@ -1769,6 +2039,7 @@ interface INGetRideStatusIntentHandling {
interface IINGetRideStatusIntentResponseObserver { }
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Protocol]
interface INGetRideStatusIntentResponseObserver {
@@ -1779,6 +2050,7 @@ interface INGetRideStatusIntentResponseObserver {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
@@ -1797,6 +2069,7 @@ interface INGetRideStatusIntentResponse {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntent))]
interface INGetUserCurrentRestaurantReservationBookingsIntent : NSCopying {
@@ -1815,6 +2088,7 @@ interface INGetUserCurrentRestaurantReservationBookingsIntent : NSCopying {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Protocol]
interface INGetUserCurrentRestaurantReservationBookingsIntentHandling {
@@ -1831,6 +2105,7 @@ interface INGetUserCurrentRestaurantReservationBookingsIntentHandling {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntentResponse))]
interface INGetUserCurrentRestaurantReservationBookingsIntentResponse {
@@ -1847,6 +2122,7 @@ interface INGetUserCurrentRestaurantReservationBookingsIntentResponse {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface INImage : NSCopying, NSSecureCoding {
@@ -1860,28 +2136,30 @@ interface INImage : NSCopying, NSSecureCoding {
INImage FromData (NSData imageData);
[Static]
+ [MarshalNativeExceptions]
[Export ("imageWithURL:")]
INImage FromUrl (NSUrl url);
// INImage_IntentsUI (IntentsUI)
- [NoMac]
+ [NoMac, NoWatch]
[Static]
[Export ("imageWithCGImage:")]
INImage FromImage (CGImage image);
- [NoMac]
+ [NoMac, NoWatch]
[Static]
[Export ("imageWithUIImage:")]
INImage FromImage (UIImage image);
- [NoMac]
+ [NoMac, NoWatch]
[Static]
[Export ("imageSizeForIntentResponse:")]
CGSize GetImageSize (INIntentResponse response);
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntentResolutionResult))]
[DisableDefaultCtor]
@@ -1916,6 +2194,7 @@ interface INIntegerResolutionResult {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Abstract]
[BaseType (typeof (NSObject))]
interface INIntent : NSCopying, NSSecureCoding {
@@ -1932,6 +2211,7 @@ interface INIntentResolutionResult : INIntentResolutionResult { }
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Abstract]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
@@ -1955,6 +2235,7 @@ interface INIntentResolutionResult {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Abstract]
[BaseType (typeof (NSObject))]
interface INIntentResponse : NSCopying, NSSecureCoding {
@@ -1965,6 +2246,7 @@ interface INIntentResponse : NSCopying, NSSecureCoding {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface INInteraction : NSSecureCoding, NSCopying {
@@ -2015,6 +2297,7 @@ interface INInteraction : NSSecureCoding, NSCopying {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntent))]
interface INListRideOptionsIntent {
@@ -2031,6 +2314,7 @@ interface INListRideOptionsIntent {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Protocol]
interface INListRideOptionsIntentHandling {
@@ -2050,6 +2334,7 @@ interface INListRideOptionsIntentHandling {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
@@ -2074,6 +2359,7 @@ interface INListRideOptionsIntentResponse {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface INMessage : NSCopying, NSSecureCoding {
@@ -2100,6 +2386,7 @@ interface INMessage : NSCopying, NSSecureCoding {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[BaseType (typeof (INIntentResolutionResult))]
[DisableDefaultCtor]
interface INMessageAttributeOptionsResolutionResult {
@@ -2133,6 +2420,7 @@ interface INMessageAttributeOptionsResolutionResult {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[BaseType (typeof (INIntentResolutionResult))]
[DisableDefaultCtor]
interface INMessageAttributeResolutionResult {
@@ -2165,6 +2453,7 @@ interface INMessageAttributeResolutionResult {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntent))]
interface INPauseWorkoutIntent {
@@ -2178,6 +2467,7 @@ interface INPauseWorkoutIntent {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Protocol]
interface INPauseWorkoutIntentHandling {
@@ -2194,6 +2484,7 @@ interface INPauseWorkoutIntentHandling {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
@@ -2208,6 +2499,7 @@ interface INPauseWorkoutIntentResponse {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
@@ -2235,6 +2527,7 @@ interface INPaymentMethod : NSCopying, NSSecureCoding {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
@@ -2271,6 +2564,7 @@ interface INPaymentRecord : NSCopying, NSSecureCoding {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface INPerson : NSCopying, NSSecureCoding, INSpeakable {
@@ -2317,10 +2611,18 @@ interface INPerson : NSCopying, NSSecureCoding, INSpeakable {
[Export ("initWithPersonHandle:nameComponents:displayName:image:contactIdentifier:customIdentifier:aliases:suggestionType:")]
IntPtr Constructor (INPersonHandle personHandle, [NullAllowed] NSPersonNameComponents nameComponents, [NullAllowed] string displayName, [NullAllowed] INImage image, [NullAllowed] string contactIdentifier, [NullAllowed] string customIdentifier, [NullAllowed] INPersonHandle [] aliases, INPersonSuggestionType suggestionType);
+
+ // Inlined from INInteraction (INPerson) Category
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Unavailable (PlatformName.MacOSX)]
+ [Export ("siriMatches", ArgumentSemantic.Copy), NullAllowed]
+ INPerson [] SiriMatches { get; }
}
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface INPersonHandle : NSCopying, NSSecureCoding {
@@ -2344,22 +2646,21 @@ interface INPersonHandle : NSCopying, NSSecureCoding {
[Introduced (PlatformName.iOS, 10, 2)]
[Introduced (PlatformName.MacOSX, 10, 12, 2, PlatformArchitecture.Arch64)]
[Wrap ("this (value, type, label.GetConstant ())")]
- [DesignatedInitializer]
IntPtr Constructor (string value, INPersonHandleType type, INPersonHandleLabel label);
+ [DesignatedInitializer]
[Introduced (PlatformName.iOS, 10, 2)]
[Introduced (PlatformName.MacOSX, 10, 12, 2, PlatformArchitecture.Arch64)]
[Export ("initWithValue:type:label:"), Protected]
- [DesignatedInitializer]
IntPtr Constructor (string value, INPersonHandleType type, [NullAllowed] NSString stringLabel);
[Export ("initWithValue:type:")]
- [DesignatedInitializer]
IntPtr Constructor (string value, INPersonHandleType type);
}
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[BaseType (typeof (INIntentResolutionResult))]
[DisableDefaultCtor]
interface INPersonResolutionResult {
@@ -2397,6 +2698,7 @@ interface INPersonResolutionResult {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[BaseType (typeof (INIntentResolutionResult))]
[DisableDefaultCtor]
interface INPlacemarkResolutionResult {
@@ -2433,14 +2735,18 @@ interface INPlacemarkResolutionResult {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
+ [DisableDefaultCtor]
[BaseType (typeof (NSObject))]
interface INPreferences {
+ [NoWatch]
[Static]
[Export ("siriAuthorizationStatus")]
INSiriAuthorizationStatus SiriAuthorizationStatus { get; }
+ [NoWatch]
[Static]
[Async]
[Export ("requestSiriAuthorization:")]
@@ -2452,6 +2758,7 @@ interface INPreferences {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
@@ -2582,6 +2889,7 @@ interface INRelativeSettingResolutionResult {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntent))]
interface INRequestPaymentIntent {
@@ -2601,6 +2909,7 @@ interface INRequestPaymentIntent {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Protocol]
interface INRequestPaymentIntentHandling {
@@ -2623,6 +2932,7 @@ interface INRequestPaymentIntentHandling {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
@@ -2640,14 +2950,21 @@ interface INRequestPaymentIntentResponse {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntent))]
interface INRequestRideIntent {
+ [Deprecated (PlatformName.iOS, 10, 3, message: "Use the INDateComponentsRange overload")]
+ [Unavailable (PlatformName.WatchOS)]
[Export ("initWithPickupLocation:dropOffLocation:rideOptionName:partySize:paymentMethod:")]
- [DesignatedInitializer]
IntPtr Constructor ([NullAllowed] CLPlacemark pickupLocation, [NullAllowed] CLPlacemark dropOffLocation, [NullAllowed] INSpeakableString rideOptionName, [NullAllowed] NSNumber partySize, [NullAllowed] INPaymentMethod paymentMethod);
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Export ("initWithPickupLocation:dropOffLocation:rideOptionName:partySize:paymentMethod:scheduledPickupTime:")]
+ [DesignatedInitializer]
+ IntPtr Constructor ([NullAllowed] CLPlacemark pickupLocation, [NullAllowed] CLPlacemark dropOffLocation, [NullAllowed] INSpeakableString rideOptionName, [NullAllowed] NSNumber partySize, [NullAllowed] INPaymentMethod paymentMethod, [NullAllowed] INDateComponentsRange scheduledPickupTime);
+
[NullAllowed, Export ("pickupLocation", ArgumentSemantic.Copy)]
CLPlacemark PickupLocation { get; }
@@ -2662,9 +2979,14 @@ interface INRequestRideIntent {
[NullAllowed, Export ("paymentMethod", ArgumentSemantic.Copy)]
INPaymentMethod PaymentMethod { get; }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [NullAllowed, Export ("scheduledPickupTime", ArgumentSemantic.Copy)]
+ INDateComponentsRange ScheduledPickupTime { get; }
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Protocol]
interface INRequestRideIntentHandling {
@@ -2687,9 +3009,14 @@ interface INRequestRideIntentHandling {
[Export ("resolvePartySizeForRequestRide:withCompletion:")]
void ResolvePartySize (INRequestRideIntent intent, Action completion);
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Export ("resolveScheduledPickupTimeForRequestRide:withCompletion:")]
+ void ResolveScheduledPickupTime (INRequestRideIntent intent, Action completion);
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
@@ -2708,6 +3035,7 @@ interface INRequestRideIntentResponse {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (NSObject))]
interface INRestaurant : NSSecureCoding, NSCopying {
@@ -2730,6 +3058,7 @@ interface INRestaurant : NSSecureCoding, NSCopying {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INPerson))]
interface INRestaurantGuest {
@@ -2746,6 +3075,7 @@ interface INRestaurantGuest {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (NSObject))]
interface INRestaurantGuestDisplayPreferences : NSSecureCoding, NSCopying {
@@ -2776,6 +3106,7 @@ interface INRestaurantGuestDisplayPreferences : NSSecureCoding, NSCopying {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[DisableDefaultCtor]
[BaseType (typeof (INIntentResolutionResult))]
interface INRestaurantGuestResolutionResult {
@@ -2813,6 +3144,7 @@ interface INRestaurantGuestResolutionResult {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (NSObject))]
interface INRestaurantOffer : NSSecureCoding, NSCopying {
@@ -2828,6 +3160,7 @@ interface INRestaurantOffer : NSSecureCoding, NSCopying {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (NSObject))]
interface INRestaurantReservationBooking : NSSecureCoding, NSCopying {
@@ -2871,6 +3204,7 @@ interface INRestaurantReservationBooking : NSSecureCoding, NSCopying {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INRestaurantReservationBooking))]
interface INRestaurantReservationUserBooking : NSCopying {
@@ -2902,6 +3236,7 @@ interface INRestaurantReservationUserBooking : NSCopying {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[DisableDefaultCtor]
[BaseType (typeof (INIntentResolutionResult))]
interface INRestaurantResolutionResult {
@@ -2938,6 +3273,7 @@ interface INRestaurantResolutionResult {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntent))]
interface INResumeWorkoutIntent {
@@ -2951,6 +3287,7 @@ interface INResumeWorkoutIntent {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Protocol]
interface INResumeWorkoutIntentHandling {
@@ -2967,6 +3304,7 @@ interface INResumeWorkoutIntentHandling {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
@@ -2981,6 +3319,7 @@ interface INResumeWorkoutIntentResponse {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
@@ -3030,6 +3369,7 @@ interface INRideCompletionStatus : NSCopying, NSSecureCoding {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)] // xtro mac !unknown-type! INRideDriver bound
[BaseType (typeof (INPerson))]
[DisableDefaultCtor] // xcode 8.2 beta 1 -> NSInvalidArgumentException Reason: *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]
@@ -3037,6 +3377,7 @@ interface INRideDriver : NSCopying, NSSecureCoding {
[Export ("initWithPersonHandle:nameComponents:displayName:image:rating:phoneNumber:")]
[Deprecated (PlatformName.iOS, 10,2, message:"Use the overload signature instead")]
+ [Unavailable (PlatformName.WatchOS)]
IntPtr Constructor (INPersonHandle personHandle, [NullAllowed] NSPersonNameComponents nameComponents, [NullAllowed] string displayName, [NullAllowed] INImage image, [NullAllowed] string rating, [NullAllowed] string phoneNumber);
[Export ("initWithPhoneNumber:nameComponents:displayName:image:rating:")]
@@ -3170,6 +3511,11 @@ interface INRideStatus : NSCopying, NSSecureCoding {
[NullAllowed, Export ("estimatedPickupEndDate", ArgumentSemantic.Copy)]
NSDate EstimatedPickupEndDate { get; set; }
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [NullAllowed, Export ("scheduledPickupTime", ArgumentSemantic.Copy)]
+ INDateComponentsRange ScheduledPickupTime { get; set; }
+
[NullAllowed, Export ("pickupLocation", ArgumentSemantic.Copy)]
CLPlacemark PickupLocation { get; set; }
@@ -3213,6 +3559,7 @@ interface INRideVehicle : NSCopying, NSSecureCoding {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntent))]
interface INSaveProfileInCarIntent {
@@ -3238,6 +3585,7 @@ interface INSaveProfileInCarIntent {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Protocol]
interface INSaveProfileInCarIntentHandling {
@@ -3258,6 +3606,7 @@ interface INSaveProfileInCarIntentHandling {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
interface INSaveProfileInCarIntentResponse {
@@ -3272,6 +3621,7 @@ interface INSaveProfileInCarIntentResponse {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[BaseType (typeof (INIntent))]
interface INSearchCallHistoryIntent {
@@ -3294,6 +3644,7 @@ interface INSearchCallHistoryIntent {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Protocol]
interface INSearchCallHistoryIntentHandling {
@@ -3316,6 +3667,7 @@ interface INSearchCallHistoryIntentHandling {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
interface INSearchCallHistoryIntentResponse {
@@ -3330,6 +3682,7 @@ interface INSearchCallHistoryIntentResponse {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[BaseType (typeof (INIntent))]
interface INSearchForMessagesIntent {
@@ -3382,6 +3735,7 @@ interface INSearchForMessagesIntent {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Protocol]
interface INSearchForMessagesIntentHandling {
@@ -3410,6 +3764,7 @@ interface INSearchForMessagesIntentHandling {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
interface INSearchForMessagesIntentResponse {
@@ -3426,6 +3781,7 @@ interface INSearchForMessagesIntentResponse {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntent))]
interface INSearchForPhotosIntent {
@@ -3463,6 +3819,7 @@ interface INSearchForPhotosIntent {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Protocol]
interface INSearchForPhotosIntentHandling {
@@ -3488,6 +3845,7 @@ interface INSearchForPhotosIntentHandling {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
@@ -3506,6 +3864,7 @@ interface INSearchForPhotosIntentResponse {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[BaseType (typeof (INIntent))]
interface INSendMessageIntent {
@@ -3531,6 +3890,7 @@ interface INSendMessageIntent {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Protocol]
interface INSendMessageIntentHandling {
@@ -3553,6 +3913,7 @@ interface INSendMessageIntentHandling {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
interface INSendMessageIntentResponse {
@@ -3566,6 +3927,7 @@ interface INSendMessageIntentResponse {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntent))]
interface INSendPaymentIntent {
@@ -3585,6 +3947,7 @@ interface INSendPaymentIntent {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Protocol]
interface INSendPaymentIntentHandling {
@@ -3607,6 +3970,7 @@ interface INSendPaymentIntentHandling {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
@@ -3625,6 +3989,7 @@ interface INSendPaymentIntentResponse {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntent))]
interface INSetAudioSourceInCarIntent {
@@ -3641,6 +4006,7 @@ interface INSetAudioSourceInCarIntent {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Protocol]
interface INSetAudioSourceInCarIntentHandling {
@@ -3660,6 +4026,7 @@ interface INSetAudioSourceInCarIntentHandling {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
interface INSetAudioSourceInCarIntentResponse {
@@ -3678,6 +4045,7 @@ interface NSUnitTemperature : NSUnit {}
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntent))]
interface INSetClimateSettingsInCarIntent {
@@ -3726,6 +4094,7 @@ interface INSetClimateSettingsInCarIntent {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Protocol]
interface INSetClimateSettingsInCarIntentHandling {
@@ -3772,6 +4141,7 @@ interface INSetClimateSettingsInCarIntentHandling {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
interface INSetClimateSettingsInCarIntentResponse {
@@ -3786,6 +4156,7 @@ interface INSetClimateSettingsInCarIntentResponse {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntent))]
interface INSetDefrosterSettingsInCarIntent {
@@ -3804,6 +4175,7 @@ interface INSetDefrosterSettingsInCarIntent {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Protocol]
interface INSetDefrosterSettingsInCarIntentHandling {
@@ -3823,6 +4195,7 @@ interface INSetDefrosterSettingsInCarIntentHandling {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
interface INSetDefrosterSettingsInCarIntentResponse {
@@ -3837,6 +4210,7 @@ interface INSetDefrosterSettingsInCarIntentResponse {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntent))]
interface INSetMessageAttributeIntent {
@@ -3853,6 +4227,7 @@ interface INSetMessageAttributeIntent {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Protocol]
interface INSetMessageAttributeIntentHandling {
@@ -3869,6 +4244,7 @@ interface INSetMessageAttributeIntentHandling {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
interface INSetMessageAttributeIntentResponse {
@@ -3883,6 +4259,7 @@ interface INSetMessageAttributeIntentResponse {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntent))]
interface INSetProfileInCarIntent {
@@ -3912,6 +4289,7 @@ interface INSetProfileInCarIntent {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Protocol]
interface INSetProfileInCarIntentHandling {
@@ -3935,6 +4313,7 @@ interface INSetProfileInCarIntentHandling {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
interface INSetProfileInCarIntentResponse {
@@ -3949,6 +4328,7 @@ interface INSetProfileInCarIntentResponse {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntent))]
interface INSetRadioStationIntent {
@@ -3974,6 +4354,7 @@ interface INSetRadioStationIntent {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Protocol]
interface INSetRadioStationIntentHandling {
@@ -4002,6 +4383,7 @@ interface INSetRadioStationIntentHandling {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
interface INSetRadioStationIntentResponse {
@@ -4016,6 +4398,7 @@ interface INSetRadioStationIntentResponse {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntent))]
interface INSetSeatSettingsInCarIntent {
@@ -4048,6 +4431,7 @@ interface INSetSeatSettingsInCarIntent {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[Protocol]
interface INSetSeatSettingsInCarIntentHandling {
@@ -4079,6 +4463,7 @@ interface INSetSeatSettingsInCarIntentHandling {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
interface INSetSeatSettingsInCarIntentResponse {
@@ -4093,6 +4478,7 @@ interface INSetSeatSettingsInCarIntentResponse {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Protocol]
interface INSpeakable {
@@ -4111,6 +4497,7 @@ interface INSpeakable {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface INSpeakableString : INSpeakable {
@@ -4127,6 +4514,7 @@ interface INSpeakableString : INSpeakable {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[BaseType (typeof (INIntentResolutionResult))]
[DisableDefaultCtor]
interface INSpeakableStringResolutionResult {
@@ -4164,6 +4552,7 @@ interface INSpeakableStringResolutionResult {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[BaseType (typeof (INIntent))]
interface INStartAudioCallIntent {
@@ -4177,6 +4566,7 @@ interface INStartAudioCallIntent {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Protocol]
interface INStartAudioCallIntentHandling {
@@ -4193,6 +4583,7 @@ interface INStartAudioCallIntentHandling {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
interface INStartAudioCallIntentResponse {
@@ -4206,6 +4597,7 @@ interface INStartAudioCallIntentResponse {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntent))]
interface INStartPhotoPlaybackIntent {
@@ -4243,6 +4635,7 @@ interface INStartPhotoPlaybackIntent {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Protocol]
interface INStartPhotoPlaybackIntentHandling {
@@ -4268,6 +4661,7 @@ interface INStartPhotoPlaybackIntentHandling {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
@@ -4286,6 +4680,7 @@ interface INStartPhotoPlaybackIntentResponse {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntent))]
interface INStartVideoCallIntent {
@@ -4299,6 +4694,7 @@ interface INStartVideoCallIntent {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Unavailable (PlatformName.WatchOS)]
[Protocol]
interface INStartVideoCallIntentHandling {
@@ -4315,6 +4711,7 @@ interface INStartVideoCallIntentHandling {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
interface INStartVideoCallIntentResponse {
@@ -4328,6 +4725,7 @@ interface INStartVideoCallIntentResponse {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntent))]
interface INStartWorkoutIntent {
@@ -4355,6 +4753,7 @@ interface INStartWorkoutIntent {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[Protocol]
interface INStartWorkoutIntentHandling {
@@ -4383,6 +4782,7 @@ interface INStartWorkoutIntentHandling {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[BaseType (typeof (INIntentResponse))]
[DisableDefaultCtor]
@@ -4398,6 +4798,7 @@ interface INStartWorkoutIntentResponse {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[DisableDefaultCtor]
[BaseType (typeof (INIntentResolutionResult))]
interface INStringResolutionResult {
@@ -4434,6 +4835,7 @@ interface INStringResolutionResult {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)]
[DisableDefaultCtor]
[BaseType (typeof (INIntentResolutionResult))]
@@ -4472,6 +4874,7 @@ interface INTemperatureResolutionResult {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (NSObject))]
interface INTermsAndConditions : NSSecureCoding, NSCopying {
@@ -4491,6 +4894,7 @@ interface INTermsAndConditions : NSSecureCoding, NSCopying {
[Introduced (PlatformName.iOS, 10, 0)]
[Unavailable (PlatformName.MacOSX)]
+ [Unavailable (PlatformName.WatchOS)]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface INVocabulary {
@@ -4509,6 +4913,7 @@ interface INVocabulary {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)] // xtro mac !unknown-type! INWorkoutGoalUnitTypeResolutionResult bound
[DisableDefaultCtor]
[BaseType (typeof (INIntentResolutionResult))]
@@ -4542,6 +4947,7 @@ interface INWorkoutGoalUnitTypeResolutionResult {
}
[Introduced (PlatformName.iOS, 10, 0)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Unavailable (PlatformName.MacOSX)] // xtro mac !unknown-type! INWorkoutLocationTypeResolutionResult bound
[DisableDefaultCtor]
[BaseType (typeof (INIntentResolutionResult))]
@@ -4576,6 +4982,7 @@ interface INWorkoutLocationTypeResolutionResult {
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.MacOSX, 10, 12, PlatformArchitecture.Arch64)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
[Category]
[BaseType (typeof (NSUserActivity))]
interface NSUserActivity_IntentsAdditions {
@@ -4583,5 +4990,731 @@ interface NSUserActivity_IntentsAdditions {
[NullAllowed, Export ("interaction")]
INInteraction GetInteraction ();
}
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [DisableDefaultCtor]
+ [BaseType (typeof (INIntent))]
+ interface INActivateCarSignalIntent {
+
+ [DesignatedInitializer]
+ [Export ("initWithCarName:signals:")]
+ IntPtr Constructor ([NullAllowed] INSpeakableString carName, INCarSignalOptions signals);
+
+ [Export ("carName", ArgumentSemantic.Copy), NullAllowed]
+ INSpeakableString CarName { get; }
+
+ [Export ("signals", ArgumentSemantic.Assign)]
+ INCarSignalOptions Signals { get; }
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [Protocol]
+ interface INActivateCarSignalIntentHandling {
+
+ [Abstract]
+ [Export ("handleActivateCarSignal:completion:")]
+ void HandleActivateCarSignal (INActivateCarSignalIntent intent, Action completion);
+
+ [Export ("confirmActivateCarSignal:completion:")]
+ void ConfirmActivateCarSignal (INActivateCarSignalIntent intent, Action completion);
+
+ [Export ("resolveCarNameForActivateCarSignal:withCompletion:")]
+ void ResolveCarName (INActivateCarSignalIntent intent, Action completion);
+
+ [Export ("resolveSignalsForActivateCarSignal:withCompletion:")]
+ void ResolveSignals (INActivateCarSignalIntent intent, Action completion);
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [DisableDefaultCtor]
+ [BaseType (typeof (NSObject))]
+ interface INBillDetails : NSCopying, NSSecureCoding {
+
+ [DesignatedInitializer]
+ [Export ("initWithBillType:paymentStatus:billPayee:amountDue:minimumDue:lateFee:dueDate:paymentDate:")]
+ IntPtr Constructor (INBillType billType, INPaymentStatus paymentStatus, [NullAllowed] INBillPayee billPayee, [NullAllowed] INCurrencyAmount amountDue, [NullAllowed] INCurrencyAmount minimumDue, [NullAllowed] INCurrencyAmount lateFee, [NullAllowed] NSDateComponents dueDate, [NullAllowed] NSDateComponents paymentDate);
+
+ [Export ("billType", ArgumentSemantic.Assign)]
+ INBillType BillType { get; set; }
+
+ [Export ("paymentStatus", ArgumentSemantic.Assign)]
+ INPaymentStatus PaymentStatus { get; set; }
+
+ [Export ("billPayee", ArgumentSemantic.Copy), NullAllowed]
+ INBillPayee BillPayee { get; set; }
+
+ [Export ("amountDue", ArgumentSemantic.Copy), NullAllowed]
+ INCurrencyAmount AmountDue { get; set; }
+
+ [Export ("minimumDue", ArgumentSemantic.Copy), NullAllowed]
+ INCurrencyAmount MinimumDue { get; set; }
+
+ [Export ("lateFee", ArgumentSemantic.Copy), NullAllowed]
+ INCurrencyAmount LateFee { get; set; }
+
+ [Export ("dueDate", ArgumentSemantic.Copy), NullAllowed]
+ NSDateComponents DueDate { get; set; }
+
+ [Export ("paymentDate", ArgumentSemantic.Copy), NullAllowed]
+ NSDateComponents PaymentDate { get; set; }
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [DisableDefaultCtor]
+ [BaseType (typeof (NSObject))]
+ interface INBillPayee : NSCopying, NSSecureCoding {
+
+ [DesignatedInitializer]
+ [Export ("initWithNickname:number:organizationName:")]
+ IntPtr Constructor (INSpeakableString nickname, [NullAllowed] string accountNumber, [NullAllowed] INSpeakableString organizationName);
+
+ [Export ("nickname", ArgumentSemantic.Copy), NullAllowed]
+ INSpeakableString Nickname { get; }
+
+ [Export ("accountNumber"), NullAllowed]
+ string AccountNumber { get; }
+
+ [Export ("organizationName", ArgumentSemantic.Copy), NullAllowed]
+ INSpeakableString OrganizationName { get; }
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [BaseType (typeof (INIntentResolutionResult))]
+ [DisableDefaultCtor]
+ interface INBillPayeeResolutionResult {
+
+ [Static]
+ [Export ("successWithResolvedBillPayee:")]
+ INBillPayeeResolutionResult GetSuccess (INBillPayee resolvedBillPayee);
+
+ [Static]
+ [Export ("disambiguationWithBillPayeesToDisambiguate:")]
+ INBillPayeeResolutionResult GetDisambiguation (INBillPayee [] billPayeesToDisambiguate);
+
+ [Static]
+ [Export ("confirmationRequiredWithBillPayeeToConfirm:")]
+ INBillPayeeResolutionResult GetConfirmationRequired ([NullAllowed] INBillPayee billPayeeToConfirm);
+
+ // Fixes bug 43205. We need to return the inherited type not the base type
+ // because users won't be able to downcast easily
+
+ [New]
+ [Static]
+ [Export ("needsValue")]
+ INBillPayeeResolutionResult NeedsValue { get; }
+
+ [New]
+ [Static]
+ [Export ("notRequired")]
+ INBillPayeeResolutionResult NotRequired { get; }
+
+ [New]
+ [Static]
+ [Export ("unsupported")]
+ INBillPayeeResolutionResult Unsupported { get; }
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [BaseType (typeof (INIntentResolutionResult))]
+ [DisableDefaultCtor]
+ interface INBillTypeResolutionResult {
+
+ [Static]
+ [Export ("successWithResolvedValue:")]
+ INBillTypeResolutionResult GetSuccess (INBillType resolvedValue);
+
+ [Static]
+ [Export ("confirmationRequiredWithValueToConfirm:")]
+ INBillTypeResolutionResult GetConfirmationRequired (INBillType valueToConfirm);
+
+ // Fixes bug 43205. We need to return the inherited type not the base type
+ // because users won't be able to downcast easily
+
+ [New]
+ [Static]
+ [Export ("needsValue")]
+ INBillTypeResolutionResult NeedsValue { get; }
+
+ [New]
+ [Static]
+ [Export ("notRequired")]
+ INBillTypeResolutionResult NotRequired { get; }
+
+ [New]
+ [Static]
+ [Export ("unsupported")]
+ INBillTypeResolutionResult Unsupported { get; }
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [BaseType (typeof (INIntentResolutionResult))]
+ [DisableDefaultCtor]
+ interface INCarSignalOptionsResolutionResult {
+
+ [Static]
+ [Export ("successWithResolvedValue:")]
+ INCarSignalOptionsResolutionResult GetSuccess (INCarSignalOptions resolvedValue);
+
+ [Static]
+ [Export ("confirmationRequiredWithValueToConfirm:")]
+ INCarSignalOptionsResolutionResult GetConfirmationRequired (INCarSignalOptions valueToConfirm);
+
+ // Fixes bug 43205. We need to return the inherited type not the base type
+ // because users won't be able to downcast easily
+
+ [New]
+ [Static]
+ [Export ("needsValue")]
+ INCarSignalOptionsResolutionResult NeedsValue { get; }
+
+ [New]
+ [Static]
+ [Export ("notRequired")]
+ INCarSignalOptionsResolutionResult NotRequired { get; }
+
+ [New]
+ [Static]
+ [Export ("unsupported")]
+ INCarSignalOptionsResolutionResult Unsupported { get; }
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [DisableDefaultCtor]
+ [BaseType (typeof (INIntent))]
+ interface INGetCarLockStatusIntent {
+
+ [DesignatedInitializer]
+ [Export ("initWithCarName:")]
+ IntPtr Constructor ([NullAllowed] INSpeakableString carName);
+
+ [Export ("carName", ArgumentSemantic.Copy), NullAllowed]
+ INSpeakableString CarName { get; }
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [Protocol]
+ interface INGetCarLockStatusIntentHandling {
+
+ [Abstract]
+ [Export ("handleGetCarLockStatus:completion:")]
+ void HandleGetCarLockStatus (INGetCarLockStatusIntent intent, Action completion);
+
+ [Export ("confirmGetCarLockStatus:completion:")]
+ void ConfirmGetCarLockStatus (INGetCarLockStatusIntent intent, Action completion);
+
+ [Export ("resolveCarNameForGetCarLockStatus:withCompletion:")]
+ void ResolveCarName (INGetCarLockStatusIntent intent, Action completion);
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [DisableDefaultCtor]
+ [BaseType (typeof (INIntentResponse))]
+ interface INGetCarLockStatusIntentResponse {
+
+ [DesignatedInitializer]
+ [Export ("initWithCode:userActivity:")]
+ IntPtr Constructor (INGetCarLockStatusIntentResponseCode code, [NullAllowed] NSUserActivity userActivity);
+
+ [Export ("code")]
+ INGetCarLockStatusIntentResponseCode Code { get; }
+
+#if false // I wish BindAs was a thing right now
+ [BindAs (typeof (bool?))]
+#endif
+ [Internal]
+ [NullAllowed, Export ("locked", ArgumentSemantic.Copy)]
+ NSNumber _Locked { get; set; }
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [DisableDefaultCtor]
+ [BaseType (typeof (INIntent))]
+ interface INGetCarPowerLevelStatusIntent {
+
+ [DesignatedInitializer]
+ [Export ("initWithCarName:")]
+ IntPtr Constructor ([NullAllowed] INSpeakableString carName);
+
+ [Export ("carName", ArgumentSemantic.Copy), NullAllowed]
+ INSpeakableString CarName { get; }
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [Protocol]
+ interface INGetCarPowerLevelStatusIntentHandling {
+
+ [Abstract]
+ [Export ("handleGetCarPowerLevelStatus:completion:")]
+ void HandleGetCarPowerLevelStatus (INGetCarPowerLevelStatusIntent intent, Action completion);
+
+ [Export ("confirmGetCarPowerLevelStatus:completion:")]
+ void ConfirmGetCarPowerLevelStatus (INGetCarPowerLevelStatusIntent intent, Action completion);
+
+ [Export ("resolveCarNameForGetCarPowerLevelStatus:withCompletion:")]
+ void ResolveCarName (INGetCarPowerLevelStatusIntent intent, Action completion);
+ }
+
+ // Just to please the generator that at this point does not know the hierarchy
+ interface NSUnitLength : NSUnit { }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [DisableDefaultCtor]
+ [BaseType (typeof (INIntentResponse))]
+ interface INGetCarPowerLevelStatusIntentResponse {
+
+ [DesignatedInitializer]
+ [Export ("initWithCode:userActivity:")]
+ IntPtr Constructor (INGetCarPowerLevelStatusIntentResponseCode code, [NullAllowed] NSUserActivity userActivity);
+
+ [Export ("code")]
+ INGetCarPowerLevelStatusIntentResponseCode Code { get; }
+
+#if false // I wish BindAs was a thing right now
+ [BindAs (typeof (float?))]
+#endif
+ [Internal]
+ [NullAllowed, Export ("fuelPercentRemaining", ArgumentSemantic.Copy)]
+ NSNumber _FuelPercentRemaining { get; set; }
+
+#if false // I wish BindAs was a thing right now
+ [BindAs (typeof (float?))]
+#endif
+ [Internal]
+ [NullAllowed, Export ("chargePercentRemaining", ArgumentSemantic.Copy)]
+ NSNumber _ChargePercentRemaining { get; set; }
+
+ [NullAllowed, Export ("distanceRemaining", ArgumentSemantic.Copy)]
+ NSMeasurement DistanceRemaining { get; set; }
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [DisableDefaultCtor]
+ [BaseType (typeof (INIntent))]
+ interface INPayBillIntent {
+
+ [DesignatedInitializer]
+ [Export ("initWithBillPayee:fromAccount:transactionAmount:transactionScheduledDate:transactionNote:billType:dueDate:")]
+ IntPtr Constructor ([NullAllowed] INBillPayee billPayee, [NullAllowed] INPaymentAccount fromAccount, [NullAllowed] INPaymentAmount transactionAmount, [NullAllowed] INDateComponentsRange transactionScheduledDate, [NullAllowed] string transactionNote, INBillType billType, [NullAllowed] INDateComponentsRange dueDate);
+
+ [Export ("billPayee", ArgumentSemantic.Copy), NullAllowed]
+ INBillPayee BillPayee { get; }
+
+ [Export ("fromAccount", ArgumentSemantic.Copy), NullAllowed]
+ INPaymentAccount FromAccount { get; }
+
+ [Export ("transactionAmount", ArgumentSemantic.Copy), NullAllowed]
+ INPaymentAmount TransactionAmount { get; }
+
+ [Export ("transactionScheduledDate", ArgumentSemantic.Copy), NullAllowed]
+ INDateComponentsRange TransactionScheduledDate { get; }
+
+ [Export ("transactionNote"), NullAllowed]
+ string TransactionNote { get; }
+
+ [Export ("billType", ArgumentSemantic.Assign)]
+ INBillType BillType { get; }
+
+ [Export ("dueDate", ArgumentSemantic.Copy), NullAllowed]
+ INDateComponentsRange DueDate { get; }
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [Protocol]
+ interface INPayBillIntentHandling {
+
+#if XAMCORE_4_0 // Apple added this Protocol to INPaymentsDomainHandling which is a braking change
+ [Abstract]
+#endif
+ [Export ("handlePayBill:completion:")]
+ void HandlePayBill (INPayBillIntent intent, Action completion);
+
+ [Export ("confirmPayBill:completion:")]
+ void ConfirmPayBill (INPayBillIntent intent, Action completion);
+
+ [Export ("resolveBillPayeeForPayBill:withCompletion:")]
+ void ResolveBillPayee (INPayBillIntent intent, Action completion);
+
+ [Export ("resolveFromAccountForPayBill:withCompletion:")]
+ void ResolveFromAccount (INPayBillIntent intent, Action completion);
+
+ [Export ("resolveTransactionAmountForPayBill:withCompletion:")]
+ void ResolveTransactionAmount (INPayBillIntent intent, Action completion);
+
+ [Export ("resolveTransactionScheduledDateForPayBill:withCompletion:")]
+ void ResolveTransactionScheduledDate (INPayBillIntent intent, Action completion);
+
+ [Export ("resolveTransactionNoteForPayBill:withCompletion:")]
+ void ResolveTransactionNote (INPayBillIntent intent, Action completion);
+
+ [Export ("resolveBillTypeForPayBill:withCompletion:")]
+ void ResolveBillType (INPayBillIntent intent, Action completion);
+
+ [Export ("resolveDueDateForPayBill:withCompletion:")]
+ void ResolveDueDate (INPayBillIntent intent, Action completion);
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [DisableDefaultCtor]
+ [BaseType (typeof (INIntentResponse))]
+ interface INPayBillIntentResponse {
+
+ [DesignatedInitializer]
+ [Export ("initWithCode:userActivity:")]
+ IntPtr Constructor (INPayBillIntentResponseCode code, [NullAllowed] NSUserActivity userActivity);
+
+ [Export ("code")]
+ INPayBillIntentResponseCode Code { get; }
+
+ [NullAllowed, Export ("fromAccount", ArgumentSemantic.Copy)]
+ INPaymentAccount FromAccount { get; set; }
+
+ [NullAllowed, Export ("billDetails", ArgumentSemantic.Copy)]
+ INBillDetails BillDetails { get; set; }
+
+ [NullAllowed, Export ("transactionAmount", ArgumentSemantic.Copy)]
+ INPaymentAmount TransactionAmount { get; set; }
+
+ [NullAllowed, Export ("transactionScheduledDate", ArgumentSemantic.Copy)]
+ INDateComponentsRange TransactionScheduledDate { get; set; }
+
+ [NullAllowed, Export ("transactionNote", ArgumentSemantic.Copy)]
+ string TransactionNote { get; set; }
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [DisableDefaultCtor]
+ [BaseType (typeof (NSObject))]
+ interface INPaymentAccount : NSCopying, NSSecureCoding {
+
+ [DesignatedInitializer]
+ [Export ("initWithNickname:number:accountType:organizationName:")]
+ IntPtr Constructor (INSpeakableString nickname, [NullAllowed] string accountNumber, INAccountType accountType, [NullAllowed] INSpeakableString organizationName);
+
+ [Export ("nickname", ArgumentSemantic.Copy), NullAllowed]
+ INSpeakableString Nickname { get; }
+
+ [Export ("accountNumber"), NullAllowed]
+ string AccountNumber { get; }
+
+ [Export ("accountType", ArgumentSemantic.Assign)]
+ INAccountType AccountType { get; }
+
+ [Export ("organizationName", ArgumentSemantic.Copy), NullAllowed]
+ INSpeakableString OrganizationName { get; }
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [BaseType (typeof (INIntentResolutionResult))]
+ [DisableDefaultCtor]
+ interface INPaymentAccountResolutionResult {
+
+ [Static]
+ [Export ("successWithResolvedPaymentAccount:")]
+ INPaymentAccountResolutionResult GetSuccess (INPaymentAccount resolvedPaymentAccount);
+
+ [Static]
+ [Export ("disambiguationWithPaymentAccountsToDisambiguate:")]
+ INPaymentAccountResolutionResult GetDisambiguation (INPaymentAccount [] paymentAccountsToDisambiguate);
+
+ [Static]
+ [Export ("confirmationRequiredWithPaymentAccountToConfirm:")]
+ INPaymentAccountResolutionResult GetConfirmationRequired ([NullAllowed] INPaymentAccount paymentAccountToConfirm);
+
+ // Fixes bug 43205. We need to return the inherited type not the base type
+ // because users won't be able to downcast easily
+
+ [New]
+ [Static]
+ [Export ("needsValue")]
+ INPaymentAccountResolutionResult NeedsValue { get; }
+
+ [New]
+ [Static]
+ [Export ("notRequired")]
+ INPaymentAccountResolutionResult NotRequired { get; }
+
+ [New]
+ [Static]
+ [Export ("unsupported")]
+ INPaymentAccountResolutionResult Unsupported { get; }
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [DisableDefaultCtor]
+ [BaseType (typeof (NSObject))]
+ interface INPaymentAmount : NSCopying, NSSecureCoding {
+
+ [DesignatedInitializer]
+ [Export ("initWithAmountType:amount:")]
+ IntPtr Constructor (INAmountType amountType, INCurrencyAmount amount);
+
+ [Export ("amount", ArgumentSemantic.Copy), NullAllowed]
+ INCurrencyAmount Amount { get; }
+
+ [Export ("amountType", ArgumentSemantic.Assign)]
+ INAmountType AmountType { get; }
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [BaseType (typeof (INIntentResolutionResult))]
+ [DisableDefaultCtor]
+ interface INPaymentAmountResolutionResult {
+
+ [Static]
+ [Export ("successWithResolvedPaymentAmount:")]
+ INPaymentAmountResolutionResult GetSuccess (INPaymentAmount resolvedPaymentAmount);
+
+ [Static]
+ [Export ("disambiguationWithPaymentAmountsToDisambiguate:")]
+ INPaymentAmountResolutionResult GetDisambiguation (INPaymentAmount [] paymentAmountsToDisambiguate);
+
+ [Static]
+ [Export ("confirmationRequiredWithPaymentAmountToConfirm:")]
+ INPaymentAmountResolutionResult GetConfirmationRequired ([NullAllowed] INPaymentAmount paymentAmountToConfirm);
+
+ // Fixes bug 43205. We need to return the inherited type not the base type
+ // because users won't be able to downcast easily
+
+ [New]
+ [Static]
+ [Export ("needsValue")]
+ INPaymentAmountResolutionResult NeedsValue { get; }
+
+ [New]
+ [Static]
+ [Export ("notRequired")]
+ INPaymentAmountResolutionResult NotRequired { get; }
+
+ [New]
+ [Static]
+ [Export ("unsupported")]
+ INPaymentAmountResolutionResult Unsupported { get; }
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [BaseType (typeof (INIntentResolutionResult))]
+ [DisableDefaultCtor]
+ interface INPaymentStatusResolutionResult {
+
+ [Static]
+ [Export ("successWithResolvedValue:")]
+ INPaymentStatusResolutionResult GetSuccess (INPaymentStatus resolvedValue);
+
+ [Static]
+ [Export ("confirmationRequiredWithValueToConfirm:")]
+ INPaymentStatusResolutionResult GetConfirmationRequired (INPaymentStatus valueToConfirm);
+
+ // Fixes bug 43205. We need to return the inherited type not the base type
+ // because users won't be able to downcast easily
+
+ [New]
+ [Static]
+ [Export ("needsValue")]
+ INPaymentStatusResolutionResult NeedsValue { get; }
+
+ [New]
+ [Static]
+ [Export ("notRequired")]
+ INPaymentStatusResolutionResult NotRequired { get; }
+
+ [New]
+ [Static]
+ [Export ("unsupported")]
+ INPaymentStatusResolutionResult Unsupported { get; }
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [DisableDefaultCtor]
+ [BaseType (typeof (INIntent))]
+ interface INSearchForBillsIntent {
+
+ [DesignatedInitializer]
+ [Export ("initWithBillPayee:paymentDateRange:billType:status:dueDateRange:")]
+ IntPtr Constructor ([NullAllowed] INBillPayee billPayee, [NullAllowed] INDateComponentsRange paymentDateRange, INBillType billType, INPaymentStatus status, [NullAllowed] INDateComponentsRange dueDateRange);
+
+ [Export ("billPayee", ArgumentSemantic.Copy), NullAllowed]
+ INBillPayee BillPayee { get; }
+
+ [Export ("paymentDateRange", ArgumentSemantic.Copy), NullAllowed]
+ INDateComponentsRange PaymentDateRange { get; }
+
+ [Export ("billType", ArgumentSemantic.Assign)]
+ INBillType BillType { get; }
+
+ [Export ("status", ArgumentSemantic.Assign)]
+ INPaymentStatus Status { get; }
+
+ [Export ("dueDateRange", ArgumentSemantic.Copy), NullAllowed]
+ INDateComponentsRange DueDateRange { get; }
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [Protocol]
+ interface INSearchForBillsIntentHandling {
+
+#if XAMCORE_4_0 // Apple added this Protocol to INPaymentsDomainHandling which is a braking change
+ [Abstract]
+#endif
+ [Export ("handleSearchForBills:completion:")]
+ void HandleSearch (INSearchForBillsIntent intent, Action completion);
+
+ [Export ("confirmSearchForBills:completion:")]
+ void ConfirmSearch (INSearchForBillsIntent intent, Action completion);
+
+ [Export ("resolveBillPayeeForSearchForBills:withCompletion:")]
+ void ResolveBillPayee (INSearchForBillsIntent intent, Action completion);
+
+ [Export ("resolvePaymentDateRangeForSearchForBills:withCompletion:")]
+ void ResolvePaymentDateRange (INSearchForBillsIntent intent, Action completion);
+
+ [Export ("resolveBillTypeForSearchForBills:withCompletion:")]
+ void ResolveBillType (INSearchForBillsIntent intent, Action completion);
+
+ [Export ("resolveStatusForSearchForBills:withCompletion:")]
+ void ResolveStatus (INSearchForBillsIntent intent, Action completion);
+
+ [Export ("resolveDueDateRangeForSearchForBills:withCompletion:")]
+ void ResolveDueDateRange (INSearchForBillsIntent intent, Action completion);
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [DisableDefaultCtor]
+ [BaseType (typeof (INIntentResponse))]
+ interface INSearchForBillsIntentResponse {
+
+ [DesignatedInitializer]
+ [Export ("initWithCode:userActivity:")]
+ IntPtr Constructor (INSearchForBillsIntentResponseCode code, [NullAllowed] NSUserActivity userActivity);
+
+ [Export ("code")]
+ INSearchForBillsIntentResponseCode Code { get; }
+
+ [NullAllowed, Export ("bills", ArgumentSemantic.Copy)]
+ INBillDetails [] Bills { get; set; }
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [DisableDefaultCtor]
+ [BaseType (typeof (INIntent))]
+ interface INSetCarLockStatusIntent {
+
+ [Protected]
+ [DesignatedInitializer]
+ [Export ("initWithLocked:carName:")]
+ IntPtr Constructor ([NullAllowed] NSNumber locked, [NullAllowed] INSpeakableString carName);
+
+#if false // I wish BindAs was a thing right now
+ [BindAs (typeof (bool?))]
+#endif
+ [Internal]
+ [Export ("locked", ArgumentSemantic.Copy), NullAllowed]
+ NSNumber _Locked { get; }
+
+ [Export ("carName", ArgumentSemantic.Copy), NullAllowed]
+ INSpeakableString CarName { get; }
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [Protocol]
+ interface INSetCarLockStatusIntentHandling {
+
+ [Abstract]
+ [Export ("handleSetCarLockStatus:completion:")]
+ void HandleSetCarLockStatus (INSetCarLockStatusIntent intent, Action completion);
+
+ [Export ("confirmSetCarLockStatus:completion:")]
+ void ConfirmSetCarLockStatus (INSetCarLockStatusIntent intent, Action completion);
+
+ [Export ("resolveLockedForSetCarLockStatus:withCompletion:")]
+ void ResolveLocked (INSetCarLockStatusIntent intent, Action completion);
+
+ [Export ("resolveCarNameForSetCarLockStatus:withCompletion:")]
+ void ResolveCarName (INSetCarLockStatusIntent intent, Action completion);
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [DisableDefaultCtor]
+ [BaseType (typeof (INIntentResponse))]
+ interface INSetCarLockStatusIntentResponse {
+
+ [DesignatedInitializer]
+ [Export ("initWithCode:userActivity:")]
+ IntPtr Constructor (INSetCarLockStatusIntentResponseCode code, [NullAllowed] NSUserActivity userActivity);
+
+ [Export ("code")]
+ INSetCarLockStatusIntentResponseCode Code { get; }
+ }
+
+ [Introduced (PlatformName.iOS, 10, 3)]
+ [Introduced (PlatformName.WatchOS, 3, 2)]
+ [Unavailable (PlatformName.MacOSX)]
+ [DisableDefaultCtor]
+ [BaseType (typeof (INIntentResponse))]
+ interface INActivateCarSignalIntentResponse {
+
+ [DesignatedInitializer]
+ [Export ("initWithCode:userActivity:")]
+ IntPtr Constructor (INActivateCarSignalIntentResponseCode code, [NullAllowed] NSUserActivity userActivity);
+
+ [Export ("code")]
+ INActivateCarSignalIntentResponseCode Code { get; }
+
+ [Export ("signals")]
+ INCarSignalOptions Signals { get; set; }
+ }
}
#endif // XAMCORE_2_0
diff --git a/src/localauthentication.cs b/src/localauthentication.cs
index 9c780974d3d3..7ce605842b16 100644
--- a/src/localauthentication.cs
+++ b/src/localauthentication.cs
@@ -56,19 +56,19 @@ interface LAContext {
[NullAllowed, Export ("localizedCancelTitle")]
string LocalizedCancelTitle { get; set; }
-#if !MONOMAC
- [Availability (Introduced = Platform.iOS_8_3, Deprecated = Platform.iOS_9_0)]
- [NullAllowed]
- [Export ("maxBiometryFailures")]
- NSNumber MaxBiometryFailures { get; set; }
-
- [iOS (9,0)]
+ [iOS (9,0)][Mac (10,12,4, onlyOn64 : true)]
[Field ("LATouchIDAuthenticationMaximumAllowableReuseDuration")]
double /* NSTimeInterval */ TouchIdAuthenticationMaximumAllowableReuseDuration { get; }
- [iOS (9,0)]
+ [iOS (9,0)][Mac (10,12,4, onlyOn64 : true)]
[Export ("touchIDAuthenticationAllowableReuseDuration")]
double /* NSTimeInterval */ TouchIdAuthenticationAllowableReuseDuration { get; set; }
+
+#if !MONOMAC
+ [Availability (Introduced = Platform.iOS_8_3, Deprecated = Platform.iOS_9_0)]
+ [NullAllowed]
+ [Export ("maxBiometryFailures")]
+ NSNumber MaxBiometryFailures { get; set; }
#endif
}
}
diff --git a/src/mediaplayer.cs b/src/mediaplayer.cs
index 8114a1817dd6..08f1ff5be979 100644
--- a/src/mediaplayer.cs
+++ b/src/mediaplayer.cs
@@ -249,6 +249,11 @@ interface MPMediaItem {
[Field ("MPMediaItemPropertyDateAdded")]
[EditorBrowsable (EditorBrowsableState.Advanced)]
NSString DateAddedProperty { get; }
+
+ [iOS (10,3)]
+ [Field ("MPMediaItemPropertyPlaybackStoreID")]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ NSString PlaybackStoreIDProperty { get; }
}
[Mac (10,12,2, onlyOn64: true)]
@@ -1132,6 +1137,11 @@ interface MPMusicPlayerController : MPMediaPlayback {
[Static, Export ("applicationMusicPlayer")]
MPMusicPlayerController ApplicationMusicPlayer { get; }
+ [iOS (10,3)]
+ [Static]
+ [Export ("applicationQueuePlayer")]
+ MPMusicPlayerApplicationController ApplicationQueuePlayer { get; }
+
[Static, Export ("iPodMusicPlayer")]
[Availability (Deprecated = Platform.iOS_8_0, Message="Use SystemMusicPlayer starting with iOS 8.0")]
MPMusicPlayerController iPodMusicPlayer { get; }
@@ -1174,6 +1184,14 @@ interface MPMusicPlayerController : MPMediaPlayback {
[Export ("setQueueWithDescriptor:")]
void SetQueue (MPMusicPlayerQueueDescriptor descriptor);
+ [iOS (10,3)]
+ [Export ("prependQueueDescriptor:")]
+ void Prepend (MPMusicPlayerQueueDescriptor descriptor);
+
+ [iOS (10,3)]
+ [Export ("appendQueueDescriptor:")]
+ void Append (MPMusicPlayerQueueDescriptor descriptor);
+
[iOS (10,1)]
[Async]
[Export ("prepareToPlayWithCompletionHandler:")]
@@ -1389,6 +1407,11 @@ interface MPNowPlayingInfoCenter {
[TV (10,0)]
[Field ("MPNowPlayingInfoPropertyIsLiveStream")]
NSString PropertyIsLiveStream { get; }
+
+ [iOS (10,3)]
+ [Mac (10,12,3)]
+ [Field ("MPNowPlayingInfoPropertyAssetURL")]
+ NSString PropertyAssetUrl { get; }
}
[Mac (10,12,2, onlyOn64: true)]
@@ -2023,5 +2046,44 @@ interface MPMusicPlayerStoreQueueDescriptor
[Export ("setEndTime:forItemWithStoreID:")]
void SetEndTime (double endTime, string storeID);
}
+
+ [NoTV]
+ [NoMac]
+ [iOS (10,3)]
+ [BaseType (typeof(NSObject))]
+ [DisableDefaultCtor]
+ interface MPMusicPlayerControllerQueue
+ {
+ [Export ("items", ArgumentSemantic.Copy)]
+ MPMediaItem[] Items { get; }
+
+ [Field ("MPMusicPlayerControllerQueueDidChangeNotification")]
+ [Notification]
+ NSString DidChangeNotification { get; }
+ }
+
+ [NoTV]
+ [NoMac]
+ [iOS (10,3)]
+ [BaseType (typeof(MPMusicPlayerControllerQueue))]
+ interface MPMusicPlayerControllerMutableQueue
+ {
+ [Export ("insertQueueDescriptor:afterItem:")]
+ void InsertAfter (MPMusicPlayerQueueDescriptor queueDescriptor, [NullAllowed] MPMediaItem item);
+
+ [Export ("removeItem:")]
+ void RemoveItem (MPMediaItem item);
+ }
+
+ [NoTV]
+ [NoMac]
+ [iOS (10,3)]
+ [BaseType (typeof(MPMusicPlayerController))]
+ interface MPMusicPlayerApplicationController
+ {
+ [Async]
+ [Export ("performQueueTransaction:completionHandler:")]
+ void Perform (Action queueTransaction, Action completionHandler);
+ }
#endif
}
diff --git a/src/metal.cs b/src/metal.cs
index fb1434140595..7a41af66efe3 100644
--- a/src/metal.cs
+++ b/src/metal.cs
@@ -253,11 +253,46 @@ partial interface MTLCommandBuffer {
[Export ("presentDrawable:atTime:")]
void PresentDrawable (IMTLDrawable drawable, double presentationTime);
+#if XAMCORE_4_0
+ [Abstract] // @required but we can't add abstract members in C# and keep binary compatibility
+#endif
+ [iOS (10,3)][TV (10,2)][NoMac]
+ [Export ("presentDrawable:afterMinimumDuration:")]
+ void PresentDrawableAfter (IMTLDrawable drawable, double duration);
+
#if XAMCORE_2_0
[Abstract]
#endif
[Export ("renderCommandEncoderWithDescriptor:")]
IMTLRenderCommandEncoder CreateRenderCommandEncoder (MTLRenderPassDescriptor renderPassDescriptor);
+
+#if XAMCORE_4_0
+ [Abstract] // @required but we can't add abstract members in C# and keep binary compatibility
+#endif
+ [iOS (10,3)][TV (10,2)][Mac (10,12,4, onlyOn64 : true)]
+ [Export ("kernelStartTime")]
+ double /* CFTimeInterval */ KernelStartTime { get; }
+
+#if XAMCORE_4_0
+ [Abstract] // @required but we can't add abstract members in C# and keep binary compatibility
+#endif
+ [iOS (10,3)][TV (10,2)][Mac (10,12,4, onlyOn64 : true)]
+ [Export ("kernelEndTime")]
+ double /* CFTimeInterval */ KernelEndTime { get; }
+
+#if XAMCORE_4_0
+ [Abstract] // @required but we can't add abstract members in C# and keep binary compatibility
+#endif
+ [iOS (10,3)][TV (10,2)][Mac (10,12,4, onlyOn64 : true)]
+ [Export ("GPUStartTime")]
+ double /* CFTimeInterval */ GpuStartTime { get; }
+
+#if XAMCORE_4_0
+ [Abstract] // @required but we can't add abstract members in C# and keep binary compatibility
+#endif
+ [iOS (10,3)][TV (10,2)][Mac (10,12,4, onlyOn64 : true)]
+ [Export ("GPUEndTime")]
+ double /* CFTimeInterval */ GpuEndTime { get; }
}
interface IMTLCommandQueue {}
@@ -676,6 +711,34 @@ partial interface MTLDrawable {
[Abstract, Export ("presentAtTime:")]
void Present (double presentationTime);
+
+#if XAMCORE_4_0
+ [Abstract] // @required but we can't add abstract members in C# and keep binary compatibility
+#endif
+ [iOS (10,3)][TV (10,2)][NoMac]
+ [Export ("presentAfterMinimumDuration:")]
+ void PresentAfter (double duration);
+
+#if XAMCORE_4_0
+ [Abstract] // @required but we can't add abstract members in C# and keep binary compatibility
+#endif
+ [iOS (10,3)][TV (10,2)][NoMac]
+ [Export ("addPresentedHandler:")]
+ void AddPresentedHandler (Action block);
+
+#if XAMCORE_4_0
+ [Abstract] // @required but we can't add abstract members in C# and keep binary compatibility
+#endif
+ [iOS (10,3)][TV (10,2)][NoMac]
+ [Export ("presentedTime")]
+ double /* CFTimeInterval */ PresentedTime { get; }
+
+#if XAMCORE_4_0
+ [Abstract] // @required but we can't add abstract members in C# and keep binary compatibility
+#endif
+ [iOS (10,3)][TV (10,2)][NoMac]
+ [Export ("drawableID")]
+ nuint DrawableID { get; }
}
interface IMTLTexture {}
diff --git a/src/modelio.cs b/src/modelio.cs
index 916012c85719..891304584d3f 100644
--- a/src/modelio.cs
+++ b/src/modelio.cs
@@ -71,7 +71,7 @@ interface MDLAsset : NSCopying
[iOS (10,0)]
[TV (10,0)]
- [NoMac]
+ [Mac (10,12)]
[Export ("initWithBufferAllocator:")]
IntPtr Constructor ([NullAllowed] IMDLMeshBufferAllocator bufferAllocator);
@@ -90,6 +90,29 @@ interface MDLAsset : NSCopying
[Export ("canExportFileExtension:")]
bool CanExportFileExtension (string extension);
+ [iOS (10,3), TV (10,2), Mac (10,12,4)]
+ [Export ("components", ArgumentSemantic.Copy)]
+ IMDLComponent[] Components { get; }
+
+ [iOS (10,3), TV (10,2), Mac (10,12,4)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("setComponent:forProtocol:")]
+ void SetComponent (IMDLComponent component, Protocol protocol);
+
+ [iOS (10,3), TV (10,2), Mac (10,12,4)]
+ [Wrap ("SetComponent (component, new Protocol (type))")]
+ void SetComponent (IMDLComponent component, Type type);
+
+ [iOS (10,3), TV (10,2), Mac (10,12,4)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("componentConformingToProtocol:")]
+ [return: NullAllowed]
+ IMDLComponent GetComponent (Protocol protocol);
+
+ [iOS (10,3), TV (10,2), Mac (10,12,4)]
+ [Wrap ("GetComponent (new Protocol (type))")]
+ IMDLComponent GetComponent (Type type);
+
[iOS (10,0)]
[Mac (10,12)]
[TV (10,0)]
@@ -153,8 +176,16 @@ interface MDLAsset : NSCopying
[Static]
[Export ("assetWithSCNScene:bufferAllocator:")]
MDLAsset FromScene (SCNScene scene, [NullAllowed] IMDLMeshBufferAllocator bufferAllocator);
+
+ // MDLAsset_MDLLightBaking (category)
+
+ [Static]
+ [Export ("placeLightProbesWithDensity:heuristic:usingIrradianceDataSource:")]
+ MDLLightProbe[] PlaceLightProbes (float density, MDLProbePlacement type, IMDLLightProbeIrradianceDataSource dataSource);
}
+ interface IMDLLightProbeIrradianceDataSource {}
+
// Added in iOS 10 SDK but it is supposed to be present in iOS 9.
[Mac (10,12)]
[Protocol, Model]
@@ -417,7 +448,7 @@ interface MDLMaterial : MDLNamed, INSFastEnumeration
[return: NullAllowed]
MDLMaterialProperty GetProperty (MDLMaterialSemantic semantic);
- [iOS (10,2), Mac (10,12,2)]
+ [iOS (10,2), Mac (10,12,1)]
[Export ("propertiesWithSemantic:")]
MDLMaterialProperty[] GetProperties (MDLMaterialSemantic semantic);
@@ -653,7 +684,7 @@ nuint VertexCount {
[Export ("vertexBuffers", ArgumentSemantic.Retain)]
IMDLMeshBuffer[] VertexBuffers {
get;
- [iOS (10,2), Mac (10,12,2), TV (10,1)]
+ [iOS (10,2), Mac (10,12,1), TV (10,1)]
set;
}
@@ -728,6 +759,13 @@ NSMutableArray Submeshes {
// MDLMesh_Generators (category)
+ // Note: we turn these constructors into static constructors because we don't want to lose the shape name. Also, the signatures of these constructors differ so it would not be possible to use an enum to differentiate the shapes.
+
+ [Internal]
+ [Export ("initBoxWithExtent:segments:inwardNormals:geometryType:allocator:")]
+ [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
+ IntPtr InitBox (Vector3 extent, Vector3i segments, bool inwardNormals, MDLGeometryType geometryType, [NullAllowed] IMDLMeshBufferAllocator allocator);
+
[Internal]
[Export ("initSphereWithExtent:segments:inwardNormals:geometryType:allocator:")]
[MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
@@ -738,6 +776,11 @@ NSMutableArray Submeshes {
[MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
IntPtr InitHemisphere (Vector3 extent, Vector2i segments, bool inwardNormals, bool cap, MDLGeometryType geometryType, [NullAllowed] IMDLMeshBufferAllocator allocator);
+ [Internal]
+ [Export ("initCylinderWithExtent:segments:inwardNormals:topCap:bottomCap:geometryType:allocator:")]
+ [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
+ IntPtr InitCylinder (Vector3 extent, Vector2i segments, bool inwardNormals, bool topCap, bool bottomCap, MDLGeometryType geometryType, [NullAllowed] IMDLMeshBufferAllocator allocator);
+
[Internal]
[Export ("initCapsuleWithExtent:cylinderSegments:hemisphereSegments:inwardNormals:geometryType:allocator:")]
[MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
@@ -748,15 +791,26 @@ NSMutableArray Submeshes {
[MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
IntPtr InitCone (Vector3 extent, Vector2i segments, bool inwardNormals, bool cap, MDLGeometryType geometryType, [NullAllowed] IMDLMeshBufferAllocator allocator);
+ [Internal]
+ [Export ("initPlaneWithExtent:segments:geometryType:allocator:")]
+ [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
+ IntPtr InitPlane (Vector3 extent, Vector2i segments, MDLGeometryType geometryType, [NullAllowed] IMDLMeshBufferAllocator allocator);
+
+ [Internal]
+ [Export ("initIcosahedronWithExtent:inwardNormals:geometryType:allocator:")]
+ [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
+ IntPtr InitIcosahedron (Vector3 extent, bool inwardNormals, MDLGeometryType geometryType, [NullAllowed] IMDLMeshBufferAllocator allocator);
+
[Internal]
[Export ("initMeshBySubdividingMesh:submeshIndex:subdivisionLevels:allocator:")]
[MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
IntPtr InitMesh (MDLMesh mesh, int submeshIndex, uint subdivisionLevels, [NullAllowed] IMDLMeshBufferAllocator allocator);
+ [Internal]
[Static]
[Export ("newBoxWithDimensions:segments:geometryType:inwardNormals:allocator:")]
[MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
- MDLMesh CreateBox (Vector3 dimensions, Vector3i segments, MDLGeometryType geometryType, bool inwardNormals, [NullAllowed] IMDLMeshBufferAllocator allocator);
+ MDLMesh NewBoxWithDimensions (Vector3 dimensions, Vector3i segments, MDLGeometryType geometryType, bool inwardNormals, [NullAllowed] IMDLMeshBufferAllocator allocator);
[Static]
[Export ("newPlaneWithDimensions:segments:geometryType:allocator:")]
@@ -986,13 +1040,31 @@ interface MDLNormalMapTexture
[BaseType (typeof(NSObject))]
interface MDLObject : MDLNamed
{
+ [iOS (10,3), TV (10,2), Mac (10,12,4)]
+ [Export ("components", ArgumentSemantic.Copy)]
+ IMDLComponent[] Components { get; }
+
[Export ("setComponent:forProtocol:")]
void SetComponent (IMDLComponent component, Protocol protocol);
+ [Wrap ("SetComponent (component, new Protocol (type))")]
+ void SetComponent (IMDLComponent component, Type type);
+
+#if XAMCORE_4_0
+ [Internal]
+#endif
+ [Obsolete ("Use GetComponent (Type type)")]
[Export ("componentConformingToProtocol:")]
[return: NullAllowed]
IMDLComponent IsComponentConforming (Protocol protocol);
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Wrap ("IsComponentConforming (protocol)")]
+ IMDLComponent GetComponent (Protocol protocol);
+
+ [Wrap ("GetComponent (new Protocol (type))")]
+ IMDLComponent GetComponent (Type type);
+
[NullAllowed, Export ("parent", ArgumentSemantic.Weak)]
MDLObject Parent { get; set; }
@@ -1068,6 +1140,20 @@ interface MDLObjectContainerComponent : MDLComponent, INSFastEnumeration
[Export ("removeObject:")]
void RemoveObject (MDLObject @object);
+#if XAMCORE_4_0
+ [Abstract]
+#endif
+ [iOS (10,3), TV (10,2), Mac (10,12,4)]
+ [Export ("objectAtIndexedSubscript:")]
+ MDLObject GetObject (nuint index);
+
+#if XAMCORE_4_0
+ [Abstract]
+#endif
+ [iOS (10,3), TV (10,2), Mac (10,12,4)]
+ [Export ("count")]
+ nuint Count { get; }
+
[Abstract]
[Export ("objects", ArgumentSemantic.Retain)]
MDLObject[] Objects { get; }
@@ -1537,6 +1623,11 @@ interface MDLTransform : MDLTransformComponent, NSCopying {
[MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
void SetRotation (Vector3 rotation, double time);
+ [iOS (10,3), TV (10,2), Mac (10,12,4)]
+ [Export ("setMatrix:forTime:")]
+ [MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
+ void SetMatrix (Matrix4 matrix, double time);
+
[Export ("shear", ArgumentSemantic.Assign)]
Vector3 Shear {
[MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
@@ -1679,40 +1770,20 @@ Vector4 InitializationValue {
interface MDLVertexAttributeData
{
[Export ("map", ArgumentSemantic.Retain), NullAllowed]
- MDLMeshBufferMap Map {
- get;
-#if !XAMCORE_4_0
- [NotImplemented]
- set;
-#endif
- }
+ MDLMeshBufferMap Map { get; set; }
[Export ("dataStart", ArgumentSemantic.Assign)]
- IntPtr DataStart {
- get;
-#if !XAMCORE_4_0
- [NotImplemented]
- set;
-#endif
- }
+ IntPtr DataStart { get; set; }
[Export ("stride", ArgumentSemantic.Assign)]
- nuint Stride {
- get;
-#if !XAMCORE_4_0
- [NotImplemented]
- set;
-#endif
- }
+ nuint Stride { get; set; }
[Export ("format", ArgumentSemantic.Assign)]
- MDLVertexFormat Format {
- get;
-#if !XAMCORE_4_0
- [NotImplemented]
- set;
-#endif
- }
+ MDLVertexFormat Format { get; set; }
+
+ [iOS (10,3), TV (10,2), Mac (10,12,4, onlyOn64: true)]
+ [Export ("bufferSize", ArgumentSemantic.Assign)]
+ nuint BufferSize { get; set; }
}
[iOS (9,0)][Mac (10,11, onlyOn64 : true)]
@@ -1963,7 +2034,7 @@ interface MDLVertexBufferLayout : NSCopying
[iOS (9,0)][Mac(10,11, onlyOn64 : true)]
[BaseType (typeof (NSObject))]
interface MDLSubmeshTopology {
- [iOS (10,2), Mac (10,12,2)]
+ [iOS (10,2), Mac (10,12)]
[Export ("initWithSubmesh:")]
IntPtr Constructor (MDLSubmesh submesh);
diff --git a/src/opengles.cs b/src/opengles.cs
index 6e4679f01f23..d245a83dfc86 100644
--- a/src/opengles.cs
+++ b/src/opengles.cs
@@ -63,10 +63,13 @@ interface EAGLContext {
[Export ("presentRenderbuffer:")]
bool PresentRenderBuffer (nuint target);
- [iOS (10,0)]
- [TV (10,0)]
+ [Internal]
[Export ("presentRenderbuffer:atTime:")]
- bool PresentRenderBuffer (nuint target, double presentationTime);
+ bool _PresentRenderbufferAtTime (nuint target, double presentationTime);
+
+ [Internal]
+ [Export ("presentRenderbuffer:afterMinimumDuration:")]
+ bool _PresentRenderbufferAfterMinimumDuration (nuint target, double duration);
[Since (7,1)]
[Export ("multiThreaded")]
diff --git a/src/passkit.cs b/src/passkit.cs
index 45eea451bc7a..dd0addfd824d 100644
--- a/src/passkit.cs
+++ b/src/passkit.cs
@@ -42,6 +42,8 @@ interface PKContact : NSSecureCoding
#endif // XAMCORE_2_0
[iOS (9,2)]
+ [Deprecated (PlatformName.iOS, 10,3, message:"Use SubLocality and SubAdministrativeArea on PostalAddress instead")]
+ [Deprecated (PlatformName.WatchOS, 3,2, message:"Use SubLocality and SubAdministrativeArea on PostalAddress instead")]
[NullAllowed, Export ("supplementarySubLocality", ArgumentSemantic.Strong)]
string SupplementarySubLocality { get; set; }
}
@@ -664,6 +666,10 @@ interface PKPaymentNetwork {
[Field ("PKPaymentNetworkAmex")]
NSString Amex { get; }
+ [iOS (10,3), Watch (3,2)]
+ [Field ("PKPaymentNetworkCarteBancaire")]
+ NSString CarteBancaire { get; }
+
[iOS (9,2)]
[Watch (2,2)]
[Field ("PKPaymentNetworkChinaUnionPay")]
@@ -695,6 +701,14 @@ interface PKPaymentNetwork {
[Watch (3,1), iOS (10,1)]
[Field ("PKPaymentNetworkSuica")]
NSString Suica { get; }
+
+ [iOS (10,3), Watch (3,2)]
+ [Field ("PKPaymentNetworkQuicPay")]
+ NSString QuicPay { get; }
+
+ [iOS (10,3), Watch (3,2)]
+ [Field ("PKPaymentNetworkIDCredit")]
+ NSString IDCredit { get; }
}
#if !WATCH
diff --git a/src/safariservices.cs b/src/safariservices.cs
index 5c8b6be10606..66cc5d49eae9 100644
--- a/src/safariservices.cs
+++ b/src/safariservices.cs
@@ -18,6 +18,8 @@
#endif
namespace XamCore.SafariServices {
+ delegate void SFExtensionValidationHandler (bool shouldHide, NSString text);
+
[Mac (10,12, onlyOn64: true)][iOS (10,0)]
[BaseType (typeof(NSObject))]
interface SFContentBlockerState
@@ -128,6 +130,11 @@ interface SFSafariApplication
[Static]
[Export ("showPreferencesForExtensionWithIdentifier:completionHandler:")]
void ShowPreferencesForExtension (string identifier, [NullAllowed] Action completionHandler);
+
+ [Mac (10, 12, 4)]
+ [Static][Async]
+ [Export ("dispatchMessageWithName:toExtensionWithIdentifier:userInfo:completionHandler:")]
+ void DispatchMessage (string messageName, string identifier, [NullAllowed] NSDictionary userInfo, [NullAllowed] Action completionHandler);
}
[Mac (10,12, onlyOn64 : true)]
@@ -171,6 +178,14 @@ interface SFSafariExtensionHandling
[Export ("popoverViewController")]
SFSafariExtensionViewController PopoverViewController { get; }
+
+ [Mac (10, 12, 4)]
+ [Async (ResultTypeName="SFExtensionValidationResult")][Export ("validateContextMenuItemWithCommand:inPage:userInfo:validationHandler:")]
+ void ValidateContextMenuItem (string command, SFSafariPage page, [NullAllowed] NSDictionary userInfo, SFExtensionValidationHandler validationHandler);
+
+ [Mac (10, 12, 4)]
+ [Export ("messageReceivedFromContainingAppWithName:userInfo:")]
+ void MessageReceivedFromContainingApp (string messageName, [NullAllowed] NSDictionary userInfo);
}
[Mac (10,12, onlyOn64: true)]
@@ -215,6 +230,18 @@ interface SFSafariToolbarItem
{
[Export ("setEnabled:withBadgeText:")]
void SetEnabled (bool enabled, [NullAllowed] string badgeText);
+
+ [Mac (10, 12, 4)]
+ [Export ("setEnabled:")]
+ void SetEnabled (bool enabled);
+
+ [Mac (10, 12, 4)]
+ [Export ("setBadgeText:")]
+ void SetBadgeText ([NullAllowed] string badgeText);
+
+ [Mac (10, 12, 4)]
+ [Export ("setImage:")]
+ void SetImage ([NullAllowed] NSImage image);
}
[Mac (10,12, onlyOn64: true)]
diff --git a/src/scenekit.cs b/src/scenekit.cs
index 036e28dcbc40..9fd2ffd1bad5 100644
--- a/src/scenekit.cs
+++ b/src/scenekit.cs
@@ -1675,13 +1675,14 @@ interface SCNRenderer : SCNSceneRenderer, SCNTechniqueSupport {
[Static, Export ("rendererWithContext:options:")]
SCNRenderer FromContext (IntPtr context, [NullAllowed] NSDictionary options);
+#if false // bug #51514
[NoWatch]
[Static]
[Wrap ("FromContext (context.GetHandle (), options)")]
// GetHandle will return IntPtr.Zero is context is null
// GLContext == CGLContext on macOS and EAGLContext in iOS and tvOS (using on top of file)
SCNRenderer FromContext (GLContext context, [NullAllowed] NSDictionary options);
-
+#endif
[NoWatch, NoTV]
[Export ("render")]
[Availability (Deprecated = Platform.Mac_10_11 | Platform.iOS_9_0)]
diff --git a/src/security.cs b/src/security.cs
index 01771af9aa29..4ea562fdff16 100644
--- a/src/security.cs
+++ b/src/security.cs
@@ -448,6 +448,12 @@ interface SecAttributeKey {
[Field ("kSecAttrIsPermanent")]
IntPtr IsPermanent { get; }
+ [Field ("kSecAttrIsSensitive")]
+ IntPtr IsSensitive { get; }
+
+ [Field ("kSecAttrIsExtractable")]
+ IntPtr IsExtractable { get; }
+
[Field ("kSecAttrApplicationTag")]
IntPtr ApplicationTag { get; }
@@ -856,11 +862,13 @@ enum SslSessionConfig {
[Field ("kSSLSessionConfig_anonymous")]
Anonymous,
- [iOS (10,2)][TV (10,1)][NoWatch][Mac (10,12,2)]
+ [iOS (10,2)][TV (10,1)][Mac (10,12,2)]
+ [Watch (3,2)]
[Field ("kSSLSessionConfig_3DES_fallback")]
ThreeDesFallback,
- [iOS (10,2)][TV (10,1)][NoWatch][Mac (10,12,2)]
+ [iOS (10,2)][TV (10,1)][Mac (10,12,2)]
+ [Watch (3,2)]
[Field ("kSSLSessionConfig_TLSv1_3DES_fallback")]
Tls1ThreeDesFallback,
}
diff --git a/src/spritekit.cs b/src/spritekit.cs
index 507765ca64be..530113cabcae 100644
--- a/src/spritekit.cs
+++ b/src/spritekit.cs
@@ -125,6 +125,11 @@ partial interface SKNode : NSCoding, NSCopying {
[Static, Export ("node")]
SKNode Create ();
+ [Static]
+ [Export ("nodeWithFileNamed:")]
+ [return: NullAllowed]
+ SKNode Create (string filename);
+
[Export ("frame")]
CGRect Frame { get; }
@@ -253,6 +258,9 @@ partial interface SKNode : NSCoding, NSCopying {
[Export ("intersectsNode:")]
bool IntersectsNode (SKNode node);
+ [Export ("isEqualToNode:")]
+ bool IsEqual (SKNode node);
+
[Export ("inParentHierarchy:")]
bool InParentHierarchy (SKNode node);
@@ -295,18 +303,22 @@ partial interface SKNode : NSCoding, NSCopying {
[Export ("obstaclesFromSpriteTextures:accuracy:")]
GKPolygonObstacle[] ObstaclesFromSpriteTextures (SKNode[] sprites, float accuracy);
+#if !XAMCORE_4_0
+ [Deprecated (PlatformName.iOS, 10,0, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")]
+ [Deprecated (PlatformName.MacOSX, 10,12, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")]
[iOS (9,0),Mac(10,11)]
[Export ("attributeValues", ArgumentSemantic.Copy)]
NSDictionary AttributeValues { get; set; }
-#if !XAMCORE_4_0
- // [Obsolete ("Please use the subtype's method")]
+ [Deprecated (PlatformName.iOS, 10,0, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")]
+ [Deprecated (PlatformName.MacOSX, 10,12, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")]
[iOS (9,0),Mac(10,11)]
[Export ("valueForAttributeNamed:")]
[return: NullAllowed]
SKAttributeValue GetValue (string key);
- // [Obsolete ("Please use the subtype's method")]
+ [Deprecated (PlatformName.iOS, 10,0, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")]
+ [Deprecated (PlatformName.MacOSX, 10,12, message: "Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).")]
[iOS (9,0),Mac(10,11)]
[Export ("setValue:forAttributeNamed:")]
void SetValue (SKAttributeValue value, string key);
@@ -381,7 +393,10 @@ partial interface SKEffectNode : SKWarpable {
[Export ("shader", ArgumentSemantic.Retain)]
SKShader Shader { get; set; }
-#if XAMCORE_4_0
+ [iOS (9,0), Mac (10,11)]
+ [Export ("attributeValues", ArgumentSemantic.Copy)]
+ NSDictionary AttributeValues { get; set; }
+
[iOS (9,0), Mac(10,11)]
[Export ("valueForAttributeNamed:")]
[return: NullAllowed]
@@ -390,7 +405,6 @@ partial interface SKEffectNode : SKWarpable {
[iOS (9,0), Mac(10,11)]
[Export ("setValue:forAttributeNamed:")]
void SetValue (SKAttributeValue value, string key);
-#endif
}
delegate Vector3 SKFieldForceEvaluator (/* vector_float3 */ Vector4 position, /* vector_float3 */ Vector4 velocity, float /* float, not CGFloat */ mass, float /* float, not CGFloat */ charge, double time);
@@ -728,7 +742,10 @@ partial interface SKSpriteNode : SKWarpable {
[Export ("scaleToSize:")]
void ScaleTo (CGSize size);
-#if XAMCORE_4_0
+ [iOS (9,0), Mac (10,11)]
+ [Export ("attributeValues", ArgumentSemantic.Copy)]
+ NSDictionary AttributeValues { get; set; }
+
[iOS (9,0), Mac(10,11)]
[Export ("valueForAttributeNamed:")]
[return: NullAllowed]
@@ -737,7 +754,6 @@ partial interface SKSpriteNode : SKWarpable {
[iOS (9,0), Mac(10,11)]
[Export ("setValue:forAttributeNamed:")]
void SetValue (SKAttributeValue value, string key);
-#endif
}
[Watch (3,0)]
@@ -962,7 +978,10 @@ partial interface SKEmitterNode {
[Export ("particleRenderOrder", ArgumentSemantic.Assign)]
SKParticleRenderOrder ParticleRenderOrder { get; set; }
-#if XAMCORE_4_0
+ [iOS (9,0), Mac (10,11)]
+ [Export ("attributeValues", ArgumentSemantic.Copy)]
+ NSDictionary AttributeValues { get; set; }
+
[iOS (9,0), Mac(10,11)]
[Export ("valueForAttributeNamed:")]
[return: NullAllowed]
@@ -971,7 +990,6 @@ partial interface SKEmitterNode {
[iOS (9,0), Mac(10,11)]
[Export ("setValue:forAttributeNamed:")]
void SetValue (SKAttributeValue value, string key);
-#endif
}
[Watch (3,0)]
@@ -1091,7 +1109,10 @@ partial interface SKShapeNode {
[Export ("lineLength")]
nfloat LineLength { get; }
-#if XAMCORE_4_0
+ [iOS (9,0), Mac (10,11)]
+ [Export ("attributeValues", ArgumentSemantic.Copy)]
+ NSDictionary AttributeValues { get; set; }
+
[iOS (9,0), Mac(10,11)]
[Export ("valueForAttributeNamed:")]
[return: NullAllowed]
@@ -1100,7 +1121,6 @@ partial interface SKShapeNode {
[iOS (9,0), Mac(10,11)]
[Export ("setValue:forAttributeNamed:")]
void SetValue (SKAttributeValue value, string key);
-#endif
}
[Watch (3,0)]
@@ -1222,44 +1242,60 @@ interface SKLightNode {
uint CategoryBitMask { get; set; } /* uint32_t */
}
- [NoWatch]
+ [Watch (3,2)]
[Mac (10,9, onlyOn64 : true)]
[Since (7,0)]
[BaseType (typeof (SKNode))]
partial interface SKVideoNode {
- [NoWatch]
+ [NoWatch] // documented as available but AVPlayer it not part of watchOS
[Static, Export ("videoNodeWithAVPlayer:")]
SKVideoNode FromPlayer (AVPlayer player);
+ [NoWatch] // documented as available but already marked deprecated
[Static, Export ("videoNodeWithVideoFileNamed:"), Internal]
SKVideoNode VideoNodeWithVideoFileNamed (string videoFile);
[Static, Export ("videoNodeWithFileNamed:"), Internal]
SKVideoNode VideoNodeWithFileNamed (string videoFile);
+ [NoWatch] // documented as available but already marked deprecated
[Static, Export ("videoNodeWithVideoURL:"), Internal]
SKVideoNode VideoNodeWithVideoURL (NSUrl videoURL);
[Static, Export ("videoNodeWithURL:"), Internal]
SKVideoNode VideoNodeWithURL (NSUrl videoURL);
- [NoWatch]
+ [NoWatch] // documented as available but AVPlayer it not part of watchOS
[DesignatedInitializer]
[Export ("initWithAVPlayer:")]
IntPtr Constructor (AVPlayer player);
+#if WATCH
+ // avoid workaround of init* selectors with same signature
+
+ [DesignatedInitializer]
+ [Export ("initWithFileNamed:")]
+ IntPtr Constructor (string videoFile);
+
+ [DesignatedInitializer]
+ [Export ("initWithURL:")]
+ IntPtr Constructor (NSUrl url);
+#else
+ [NoWatch]
[Export ("initWithVideoFileNamed:"), Internal]
IntPtr InitWithVideoFileNamed (string videoFile);
[Export ("initWithFileNamed:"), Internal]
IntPtr InitWithFileNamed (string videoFile);
+ [NoWatch]
[Export ("initWithVideoURL:"), Internal]
IntPtr InitWithVideoURL (NSUrl url);
[Export ("initWithURL:"), Internal]
IntPtr InitWithURL (NSUrl url);
+#endif
[Export ("play")]
void Play ();
@@ -1872,10 +1908,6 @@ Matrix4 _MatrixFloat4x4Value {
[MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")] set;
}
-#if false
- // Do we really need these static factory methods, instead of the nice construcotrs we have in C#?
- // Only reason Apple exposed these is because [[foo alloc] init] is annoying
- //
[Static, Export ("uniformWithName:")]
SKUniform Create (string name);
@@ -1920,7 +1952,6 @@ Matrix4 _MatrixFloat4x4Value {
[Export ("uniformWithName:matrixFloat4x4:")]
[MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
SKUniform Create (string name, Matrix4 value);
-#endif
}
delegate void SKActionDurationHandler (SKNode node, nfloat elapsedTime);
@@ -3030,7 +3061,10 @@ interface SKTileMapNode : NSCopying, NSCoding
SKTileMapNode[] FromTileSet (SKTileSet tileSet, nuint columns, nuint rows, CGSize tileSize, GKNoiseMap noiseMap, NSNumber[] thresholds);
#endif
-#if XAMCORE_4_0
+ [iOS (9,0), Mac (10,11)]
+ [Export ("attributeValues", ArgumentSemantic.Copy)]
+ NSDictionary AttributeValues { get; set; }
+
[iOS (9,0), Mac(10,11)]
[Export ("valueForAttributeNamed:")]
[return: NullAllowed]
@@ -3039,7 +3073,6 @@ interface SKTileMapNode : NSCopying, NSCoding
[iOS (9,0), Mac(10,11)]
[Export ("setValue:forAttributeNamed:")]
void SetValue (SKAttributeValue value, string key);
-#endif
}
[Watch (3,0)]
diff --git a/src/storekit.cs b/src/storekit.cs
index 092ffb2353fd..6455c93e771c 100644
--- a/src/storekit.cs
+++ b/src/storekit.cs
@@ -63,12 +63,13 @@ partial interface SKDownload {
[Static]
void DeleteContentForProduct (string productId);
#else
- [Export ("transaction")]
- SKPaymentTransaction Transaction { get; }
-
[Field ("SKDownloadTimeRemainingUnknown")]
double TimeRemainingUnknown { get; }
#endif
+
+ [Mac (10,11)]
+ [Export ("transaction")]
+ SKPaymentTransaction Transaction { get; }
}
[BaseType (typeof (NSObject))]
@@ -464,6 +465,11 @@ interface SKCloudServiceController {
[Export ("requestCapabilitiesWithCompletionHandler:")]
void RequestCapabilities (Action completionHandler);
+ [iOS (10,3), TV (10,2)]
+ [Async]
+ [Export ("requestPersonalizationTokenForClientToken:withCompletionHandler:")]
+ void RequestPersonalizationToken (string clientToken, Action completionHandler);
+
[Notification]
[Field ("SKStorefrontIdentifierDidChangeNotification")]
NSString StorefrontIdentifierDidChangeNotification { get; }
@@ -511,6 +517,12 @@ interface SKCloudServiceSetupOptions
// Headers comment: Identifier of the iTunes Store item the user is trying to access which requires cloud service setup (NSNumber).
nint ITunesItemIdentifier { get; set; }
+
+ [iOS (10,3)]
+ string AffiliateToken { get; set; }
+
+ [iOS (10,3)]
+ string CampaignToken { get; set; }
}
[NoTV, iOS (10,1)]
@@ -522,6 +534,14 @@ interface SKCloudServiceSetupOptionsKeys
[Field ("SKCloudServiceSetupOptionsITunesItemIdentifierKey")]
NSString ITunesItemIdentifierKey { get; }
+
+ [iOS (10,3)]
+ [Field ("SKCloudServiceSetupOptionsAffiliateTokenKey")]
+ NSString AffiliateTokenKey { get; }
+
+ [iOS (10,3)]
+ [Field ("SKCloudServiceSetupOptionsCampaignTokenKey")]
+ NSString CampaignTokenKey { get; }
}
[NoTV, iOS (10,1)]
@@ -530,5 +550,16 @@ enum SKCloudServiceSetupAction
[Field ("SKCloudServiceSetupActionSubscribe")]
Subscribe,
}
+
+ [iOS (10,3)]
+ [NoTV]
+ [BaseType (typeof (NSObject))]
+ [DisableDefaultCtor] // Not specified but very likely
+ interface SKStoreReviewController {
+
+ [Static]
+ [Export ("requestReview")]
+ void RequestReview ();
+ }
#endif
}
diff --git a/src/uikit.cs b/src/uikit.cs
index a8049f7eebf7..897ce30c0248 100644
--- a/src/uikit.cs
+++ b/src/uikit.cs
@@ -2953,6 +2953,23 @@ interface UIApplication {
[NullAllowed, Export ("shortcutItems", ArgumentSemantic.Copy)]
UIApplicationShortcutItem[] ShortcutItems { get; set; }
+ //
+ // 10.0
+ //
+ // from @interface UIApplication (UIAlternateApplicationIcons)
+
+ [iOS (10,3)][TV (10,2)]
+ [Export ("supportsAlternateIcons")]
+ bool SupportsAlternateIcons { get; }
+
+ [iOS (10,3)][TV (10,2)]
+ [Async]
+ [Export ("setAlternateIconName:completionHandler:")]
+ void SetAlternateIconName ([NullAllowed] string alternateIconName, [NullAllowed] Action completionHandler);
+
+ [iOS (10,3)][TV (10,2)]
+ [Export ("alternateIconName"), NullAllowed]
+ string AlternateIconName { get; }
}
[NoTV]
@@ -3916,6 +3933,16 @@ interface UICollectionViewDataSource {
[iOS (9,0)]
[Export ("collectionView:moveItemAtIndexPath:toIndexPath:")]
void MoveItem (UICollectionView collectionView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath);
+
+ [iOS (10,3), TV (10,2)]
+ [return: NullAllowed]
+ [Export ("indexTitlesForCollectionView:")]
+ string [] GetIndexTitles (UICollectionView collectionView);
+
+ [iOS (10,3), TV (10,2)]
+ [return: NullAllowed]
+ [Export ("collectionView:indexPathForIndexTitle:atIndex:")]
+ NSIndexPath GetIndexPath (UICollectionView collectionView, string title, nint atIndex);
}
[Since (6,0)]
@@ -6374,7 +6401,6 @@ partial interface UILexiconEntry : NSCopying {
string UserInput { get; }
}
- [NoTV]
[BaseType (typeof (NSObject))]
interface UILocalizedIndexedCollation {
[Export ("sectionTitles")]
@@ -9394,6 +9420,10 @@ UIScreenMode CurrentMode {
[Export ("displayLinkWithTarget:selector:")]
CoreAnimation.CADisplayLink CreateDisplayLink (NSObject target, Selector sel);
+ [iOS (10,3), TV (10,2)]
+ [Export ("maximumFramesPerSecond")]
+ nint MaximumFramesPerSecond { get; }
+
[NoTV]
[Since (5,0)]
[Export ("brightness")]
@@ -9508,6 +9538,10 @@ interface UIScrollView {
[Export ("decelerationRate")]
nfloat DecelerationRate { get; set; }
+ [iOS (10,3), TV (10,2), NoWatch]
+ [Export ("indexDisplayMode")]
+ UIScrollViewIndexDisplayMode IndexDisplayMode { get; set; }
+
[NoTV]
[Export ("pagingEnabled")]
bool PagingEnabled { [Bind ("isPagingEnabled")] get; set; }
@@ -11140,10 +11174,11 @@ interface UITableViewSource {
[Export ("tableView:canMoveRowAtIndexPath:")]
bool CanMoveRow (UITableView tableView, NSIndexPath indexPath);
- [NoTV]
+ [TV (10,2)]
[Export ("sectionIndexTitlesForTableView:")]
string [] SectionIndexTitles (UITableView tableView);
+ [TV (10,2)] // <- Header removed __TVOS_PROHIBITED;
[Export ("tableView:sectionForSectionIndexTitle:atIndex:")]
nint SectionFor (UITableView tableView, string title, nint atIndex);
@@ -11458,11 +11493,11 @@ interface UITableViewDataSource {
[Export ("tableView:canMoveRowAtIndexPath:")]
bool CanMoveRow (UITableView tableView, NSIndexPath indexPath);
- [NoTV]
+ [TV (10,2)]
[Export ("sectionIndexTitlesForTableView:")]
string [] SectionIndexTitles (UITableView tableView);
- [NoTV]
+ [TV (10,2)]
[Export ("tableView:sectionForSectionIndexTitle:atIndex:")]
nint SectionFor (UITableView tableView, string title, nint atIndex);
diff --git a/src/videotoolbox.cs b/src/videotoolbox.cs
index a265d21bd1b3..c175e3bc619c 100644
--- a/src/videotoolbox.cs
+++ b/src/videotoolbox.cs
@@ -14,702 +14,590 @@
namespace XamCore.VideoToolbox {
+ [Mac (10,8), iOS (8,0), TV (10,2)]
[Static]
interface VTCompressionPropertyKey {
// Buffers
[Field ("kVTCompressionPropertyKey_NumberOfPendingFrames")]
- [Mac (10,8), iOS (8,0)]
NSString NumberOfPendingFrames { get; }
[Field ("kVTCompressionPropertyKey_PixelBufferPoolIsShared")]
- [Mac (10,8), iOS (8,0)]
NSString PixelBufferPoolIsShared { get; }
[Field ("kVTCompressionPropertyKey_VideoEncoderPixelBufferAttributes")]
- [Mac (10,8), iOS (8,0)]
NSString VideoEncoderPixelBufferAttributes { get; }
// Frame dependency
[Field ("kVTCompressionPropertyKey_MaxKeyFrameInterval")]
- [Mac (10,8), iOS (8,0)]
NSString MaxKeyFrameInterval { get; }
[Field ("kVTCompressionPropertyKey_MaxKeyFrameIntervalDuration")]
- [Mac (10,8), iOS (8,0)]
NSString MaxKeyFrameIntervalDuration { get; }
[Field ("kVTCompressionPropertyKey_AllowTemporalCompression")]
- [Mac (10,8), iOS (8,0)]
NSString AllowTemporalCompression { get; }
[Field ("kVTCompressionPropertyKey_AllowFrameReordering")]
- [Mac (10,8), iOS (8,0)]
NSString AllowFrameReordering { get; }
// Rate control
[Field ("kVTCompressionPropertyKey_AverageBitRate")]
- [Mac (10,8), iOS (8,0)]
NSString AverageBitRate { get; }
[Field ("kVTCompressionPropertyKey_DataRateLimits")]
- [Mac (10,8), iOS (8,0)]
NSString DataRateLimits { get; } // NSArray of an even number of CFNumbers alternating [int, double](bytes, seconds] Read/write
[Field ("kVTCompressionPropertyKey_Quality")]
- [Mac (10,8), iOS (8,0)]
NSString Quality { get; }
[Field ("kVTCompressionPropertyKey_MoreFramesBeforeStart")]
- [Mac (10,8), iOS (8,0)]
NSString MoreFramesBeforeStart { get; }
[Field ("kVTCompressionPropertyKey_MoreFramesAfterEnd")]
- [Mac (10,8), iOS (8,0)]
NSString MoreFramesAfterEnd { get; }
// Bitstream configuration
[Field ("kVTCompressionPropertyKey_ProfileLevel")]
- [Mac (10,8), iOS (8,0)]
NSString ProfileLevel { get; }
[Field ("kVTCompressionPropertyKey_H264EntropyMode")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString H264EntropyMode { get; }
[Field ("kVTCompressionPropertyKey_Depth")]
- [Mac (10,8), iOS (8,0)]
NSString Depth { get; }
// Runtime restrictions
[Field ("kVTCompressionPropertyKey_MaxFrameDelayCount")]
- [Mac (10,8), iOS (8,0)]
NSString MaxFrameDelayCount { get; }
[Field ("kVTCompressionPropertyKey_MaxH264SliceBytes")]
- [Mac (10,8), iOS (8,0)]
NSString MaxH264SliceBytes { get; }
[Field ("kVTCompressionPropertyKey_RealTime")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString RealTime { get; }
// Hints
[Field ("kVTCompressionPropertyKey_SourceFrameCount")]
- [Mac (10,8), iOS (8,0)]
NSString SourceFrameCount { get; }
[Field ("kVTCompressionPropertyKey_ExpectedFrameRate")]
- [Mac (10,8), iOS (8,0)]
NSString ExpectedFrameRate { get; }
[Field ("kVTCompressionPropertyKey_ExpectedDuration")]
- [Mac (10,8), iOS (8,0)]
NSString ExpectedDuration { get; }
// Hardware acceleration
// Hardware acceleration is default behavior on iOS. No opt-in required.
[Field ("kVTCompressionPropertyKey_UsingHardwareAcceleratedVideoEncoder")]
- [Mac (10,8), iOS (8,0)]
NSString UsingHardwareAcceleratedVideoEncoder { get; } // CFBoolean Read
// Clean aperture and pixel aspect ratio
[Field ("kVTCompressionPropertyKey_CleanAperture")]
- [Mac (10,8), iOS (8,0)]
NSString CleanAperture { get; }
[Field ("kVTCompressionPropertyKey_PixelAspectRatio")]
- [Mac (10,8), iOS (8,0)]
NSString PixelAspectRatio { get; }
[Field ("kVTCompressionPropertyKey_FieldCount")]
- [Mac (10,8), iOS (8,0)]
NSString FieldCount { get; }
[Field ("kVTCompressionPropertyKey_FieldDetail")]
- [Mac (10,8), iOS (8,0)]
NSString FieldDetail { get; }
[Field ("kVTCompressionPropertyKey_AspectRatio16x9")]
- [Mac (10,8), iOS (8,0)]
NSString AspectRatio16x9 { get; }
[Field ("kVTCompressionPropertyKey_ProgressiveScan")]
- [Mac (10,8), iOS (8,0)]
NSString ProgressiveScan { get; }
// Color
[Field ("kVTCompressionPropertyKey_ColorPrimaries")]
- [Mac (10,8), iOS (8,0)]
NSString ColorPrimaries { get; }
[Field ("kVTCompressionPropertyKey_TransferFunction")]
- [Mac (10,8), iOS (8,0)]
NSString TransferFunction { get; }
[Field ("kVTCompressionPropertyKey_YCbCrMatrix")]
- [Mac (10,8), iOS (8,0)]
NSString YCbCrMatrix { get; }
[Field ("kVTCompressionPropertyKey_ICCProfile")]
- [Mac (10,8), iOS (8,0)]
NSString ICCProfile { get; }
// Pre-compression processing
[Field ("kVTCompressionPropertyKey_PixelTransferProperties")]
- [Mac (10,8), iOS (8,0)]
NSString PixelTransferProperties { get; }
// Multi-pass
[Field ("kVTCompressionPropertyKey_MultiPassStorage")]
- [Mac (10,10), iOS (8,0)]
+ [Mac (10,10)]
NSString MultiPassStorage { get; }
}
+ [Mac (10,8), iOS (8,0), TV (10,2)]
[StrongDictionary ("VTCompressionPropertyKey")]
interface VTCompressionProperties {
- [Mac (10,8), iOS (8,0)]
[Export ("NumberOfPendingFrames")]
int NumberOfPendingFrames { get; }
- [Mac (10,8), iOS (8,0)]
[Export ("PixelBufferPoolIsShared")]
bool PixelBufferPoolIsShared { get; }
- [Mac (10,8), iOS (8,0)]
[Export ("VideoEncoderPixelBufferAttributes")]
NSDictionary VideoEncoderPixelBufferAttributes { get; }
- [Mac (10,8), iOS (8,0)]
[Export ("MaxKeyFrameInterval")]
int MaxKeyFrameInterval { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("MaxKeyFrameIntervalDuration")]
double MaxKeyFrameIntervalDuration { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("AllowTemporalCompression")]
bool AllowTemporalCompression { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("AllowFrameReordering")]
bool AllowFrameReordering { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("AverageBitRate")]
int AverageBitRate { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("Quality")]
float Quality { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("MoreFramesBeforeStart")]
bool MoreFramesBeforeStart { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("MoreFramesAfterEnd")]
bool MoreFramesAfterEnd { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("Depth")]
CMPixelFormat Depth { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("MaxFrameDelayCount")]
int MaxFrameDelayCount { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("MaxH264SliceBytes")]
int MaxH264SliceBytes { get; set; }
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
[Export ("RealTime")]
bool RealTime { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("SourceFrameCount")]
uint SourceFrameCount { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("ExpectedFrameRate")]
double ExpectedFrameRate { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("ExpectedDuration")]
double ExpectedDuration { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("UsingHardwareAcceleratedVideoEncoder")]
bool UsingHardwareAcceleratedVideoEncoder { get; }
- [Mac (10,8), iOS (8,0)]
[Export ("CleanAperture")]
NSDictionary CleanAperture { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("PixelAspectRatio")]
NSDictionary PixelAspectRatio { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("FieldCount")]
VTFieldCount FieldCount { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("AspectRatio16x9")]
bool AspectRatio16x9 { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("ProgressiveScan")]
bool ProgressiveScan { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("ICCProfile")]
NSData ICCProfile { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("PixelTransferProperties")]
NSDictionary PixelTransferProperties { get; set; }
}
+ [Mac (10,8), iOS (8,0), TV (10,2)]
[Static]
interface VTProfileLevelKeys {
// H264
[Field ("kVTProfileLevel_H264_Baseline_1_3")]
- [Mac (10,8), iOS (8,0)]
NSString H264_Baseline_1_3 { get; }
[Field ("kVTProfileLevel_H264_Baseline_3_0")]
- [Mac (10,8), iOS (8,0)]
NSString H264_Baseline_3_0 { get; }
[Field ("kVTProfileLevel_H264_Baseline_3_1")]
- [Mac (10,8), iOS (8,0)]
NSString H264_Baseline_3_1 { get; }
[Field ("kVTProfileLevel_H264_Baseline_3_2")]
- [Mac (10,8), iOS (8,0)]
NSString H264_Baseline_3_2 { get; }
[Field ("kVTProfileLevel_H264_Baseline_4_0")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString H264_Baseline_4_0 { get; }
[Field ("kVTProfileLevel_H264_Baseline_4_1")]
- [Mac (10,8), iOS (8,0)]
NSString H264_Baseline_4_1 { get; }
[Field ("kVTProfileLevel_H264_Baseline_4_2")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString H264_Baseline_4_2 { get; }
[Field ("kVTProfileLevel_H264_Baseline_5_0")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString H264_Baseline_5_0 { get; }
[Field ("kVTProfileLevel_H264_Baseline_5_1")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString H264_Baseline_5_1 { get; }
[Field ("kVTProfileLevel_H264_Baseline_5_2")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString H264_Baseline_5_2 { get; }
[Field ("kVTProfileLevel_H264_Baseline_AutoLevel")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString H264_Baseline_AutoLevel { get; }
[Field ("kVTProfileLevel_H264_Main_3_0")]
- [Mac (10,8), iOS (8,0)]
NSString H264_Main_3_0 { get; }
[Field ("kVTProfileLevel_H264_Main_3_1")]
- [Mac (10,8), iOS (8,0)]
NSString H264_Main_3_1 { get; }
[Field ("kVTProfileLevel_H264_Main_3_2")]
- [Mac (10,8), iOS (8,0)]
NSString H264_Main_3_2 { get; }
[Field ("kVTProfileLevel_H264_Main_4_0")]
- [Mac (10,8), iOS (8,0)]
NSString H264_Main_4_0 { get; }
[Field ("kVTProfileLevel_H264_Main_4_1")]
- [Mac (10,8), iOS (8,0)]
NSString H264_Main_4_1 { get; }
[Field ("kVTProfileLevel_H264_Main_4_2")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString H264_Main_4_2 { get; }
[Field ("kVTProfileLevel_H264_Main_5_0")]
- [Mac (10,8), iOS (8,0)]
NSString H264_Main_5_0 { get; }
[Field ("kVTProfileLevel_H264_Main_5_1")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString H264_Main_5_1 { get; }
[Field ("kVTProfileLevel_H264_Main_5_2")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString H264_Main_5_2 { get; }
[Field ("kVTProfileLevel_H264_Main_AutoLevel")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString H264_Main_AutoLevel { get; }
[Field ("kVTProfileLevel_H264_Extended_5_0")]
- [Mac (10,8), iOS (8,0)]
NSString H264_Extended_5_0 { get; }
[Field ("kVTProfileLevel_H264_Extended_AutoLevel")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString H264_Extended_AutoLevel { get; }
[Field ("kVTProfileLevel_H264_High_3_0")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString H264_High_3_0 { get; }
[Field ("kVTProfileLevel_H264_High_3_1")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString H264_High_3_1 { get; }
[Field ("kVTProfileLevel_H264_High_3_2")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString H264_High_3_2 { get; }
[Field ("kVTProfileLevel_H264_High_4_0")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString H264_High_4_0 { get; }
[Field ("kVTProfileLevel_H264_High_4_1")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString H264_High_4_1 { get; }
[Field ("kVTProfileLevel_H264_High_4_2")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString H264_High_4_2 { get; }
[Field ("kVTProfileLevel_H264_High_5_0")]
- [Mac (10,8), iOS (8,0)]
NSString H264_High_5_0 { get; }
[Field ("kVTProfileLevel_H264_High_5_1")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString H264_High_5_1 { get; }
[Field ("kVTProfileLevel_H264_High_5_2")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString H264_High_5_2 { get; }
[Field ("kVTProfileLevel_H264_High_AutoLevel")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString H264_High_AutoLevel { get; }
// MP4V
[Field ("kVTProfileLevel_MP4V_Simple_L0")]
- [Mac (10,8), iOS (8,0)]
NSString MP4V_Simple_L0 { get; }
[Field ("kVTProfileLevel_MP4V_Simple_L1")]
- [Mac (10,8), iOS (8,0)]
NSString MP4V_Simple_L1 { get; }
[Field ("kVTProfileLevel_MP4V_Simple_L2")]
- [Mac (10,8), iOS (8,0)]
NSString MP4V_Simple_L2 { get; }
[Field ("kVTProfileLevel_MP4V_Simple_L3")]
- [Mac (10,8), iOS (8,0)]
NSString MP4V_Simple_L3 { get; }
[Field ("kVTProfileLevel_MP4V_Main_L2")]
- [Mac (10,8), iOS (8,0)]
NSString MP4V_Main_L2 { get; }
[Field ("kVTProfileLevel_MP4V_Main_L3")]
- [Mac (10,8), iOS (8,0)]
NSString MP4V_Main_L3 { get; }
[Field ("kVTProfileLevel_MP4V_Main_L4")]
- [Mac (10,8), iOS (8,0)]
NSString MP4V_Main_L4 { get; }
[Field ("kVTProfileLevel_MP4V_AdvancedSimple_L0")]
- [Mac (10,8), iOS (8,0)]
NSString MP4V_AdvancedSimple_L0 { get; }
[Field ("kVTProfileLevel_MP4V_AdvancedSimple_L1")]
- [Mac (10,8), iOS (8,0)]
NSString MP4V_AdvancedSimple_L1 { get; }
[Field ("kVTProfileLevel_MP4V_AdvancedSimple_L2")]
- [Mac (10,8), iOS (8,0)]
NSString MP4V_AdvancedSimple_L2 { get; }
[Field ("kVTProfileLevel_MP4V_AdvancedSimple_L3")]
- [Mac (10,8), iOS (8,0)]
NSString MP4V_AdvancedSimple_L3 { get; }
[Field ("kVTProfileLevel_MP4V_AdvancedSimple_L4")]
- [Mac (10,8), iOS (8,0)]
NSString MP4V_AdvancedSimple_L4 { get; }
// H263
[Field ("kVTProfileLevel_H263_Profile0_Level10")]
- [Mac (10,8), iOS (8,0)]
NSString H263_Profile0_Level10 { get; }
[Field ("kVTProfileLevel_H263_Profile0_Level45")]
- [Mac (10,8), iOS (8,0)]
NSString H263_Profile0_Level45 { get; }
[Field ("kVTProfileLevel_H263_Profile3_Level45")]
- [Mac (10,8), iOS (8,0)]
NSString H263_Profile3_Level45 { get; }
}
[Static]
+ [Mac (10,9), iOS (8,0), TV (10,2)]
interface VTH264EntropyModeKeys {
[Field ("kVTH264EntropyMode_CAVLC")]
- [Mac (10,9), iOS (8,0)]
NSString CAVLC { get; }
[Field ("kVTH264EntropyMode_CABAC")]
- [Mac (10,9), iOS (8,0)]
NSString CABAC { get; }
}
+ [Mac (10,8), iOS (8,0), TV (10,2)]
[StrongDictionary ("VTVideoEncoderSpecificationKeys")]
interface VTVideoEncoderSpecification {
-#if MONOMAC
- [Mac (10,9)]
+
+ [Mac (10,9), NoiOS, NoTV]
[Export ("EnableHardwareAcceleratedVideoEncoder")]
bool EnableHardwareAcceleratedVideoEncoder { get; set; }
- [Mac (10,9)]
+ [Mac (10,9), NoiOS, NoTV]
[Export ("RequireHardwareAcceleratedVideoEncoder")]
bool RequireHardwareAcceleratedVideoEncoder { get; set; }
-#endif
- [Mac (10,8), iOS (8,0)]
+
[Export ("EncoderID")]
string EncoderID { get; set; }
}
+ [Mac (10,8), iOS (8,0), TV (10,2)]
[Static]
interface VTVideoEncoderSpecificationKeys {
-#if MONOMAC
+
[Field ("kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder")]
- [Mac (10,9)]
+ [Mac (10,9), NoiOS, NoTV]
NSString EnableHardwareAcceleratedVideoEncoder { get; }
[Field ("kVTVideoEncoderSpecification_RequireHardwareAcceleratedVideoEncoder")]
- [Mac (10,9)]
+ [Mac (10,9), NoiOS, NoTV]
NSString RequireHardwareAcceleratedVideoEncoder { get; }
-#endif
- [Mac (10,8), iOS (8,0)]
+
[Field ("kVTVideoEncoderSpecification_EncoderID")]
NSString EncoderID { get; }
}
+ [Mac (10,8), iOS (8,0), TV (10,2)]
[StrongDictionary ("VTEncodeFrameOptionKey")]
interface VTEncodeFrameOptions {
+
[Export ("ForceKeyFrame")]
bool ForceKeyFrame { get; set; }
}
+ [Mac (10,8), iOS (8,0), TV (10,2)]
[Static]
interface VTEncodeFrameOptionKey {
// Per-frame configuration
[Field ("kVTEncodeFrameOptionKey_ForceKeyFrame")]
- [Mac (10,8), iOS (8,0)]
NSString ForceKeyFrame { get; }
}
+ [Mac (10,8), iOS (8,0), TV (10,2)]
[Static]
interface VTDecompressionPropertyKey {
// Pixel buffer pools
[Field ("kVTDecompressionPropertyKey_PixelBufferPool")]
- [Mac (10,8), iOS (8,0)]
NSString PixelBufferPool { get; }
[Field ("kVTDecompressionPropertyKey_PixelBufferPoolIsShared")]
- [Mac (10,8), iOS (8,0)]
NSString PixelBufferPoolIsShared { get; }
[Field ("kVTDecompressionPropertyKey_OutputPoolRequestedMinimumBufferCount")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString OutputPoolRequestedMinimumBufferCount { get; }
// Asynchronous state
[Field ("kVTDecompressionPropertyKey_NumberOfFramesBeingDecoded")]
- [Mac (10,8), iOS (8,0)]
NSString NumberOfFramesBeingDecoded { get; }
[Field ("kVTDecompressionPropertyKey_MinOutputPresentationTimeStampOfFramesBeingDecoded")]
- [Mac (10,8), iOS (8,0)]
NSString MinOutputPresentationTimeStampOfFramesBeingDecoded { get; }
[Field ("kVTDecompressionPropertyKey_MaxOutputPresentationTimeStampOfFramesBeingDecoded")]
- [Mac (10,8), iOS (8,0)]
NSString MaxOutputPresentationTimeStampOfFramesBeingDecoded { get; }
// Content
[Field ("kVTDecompressionPropertyKey_ContentHasInterframeDependencies")]
- [Mac (10,8), iOS (8,0)]
NSString ContentHasInterframeDependencies { get; }
// Hardware acceleration
// hardware acceleration is default behavior on iOS. no opt-in required.
[Field ("kVTDecompressionPropertyKey_UsingHardwareAcceleratedVideoDecoder")]
- [Mac (10,9), iOS (8,0)]
+ [Mac (10,9)]
NSString UsingHardwareAcceleratedVideoDecoder { get; }
// Decoder behavior
[Field ("kVTDecompressionPropertyKey_RealTime")]
- [Mac (10,10), iOS (8,0)]
+ [Mac (10,10)]
NSString RealTime { get; }
[Field ("kVTDecompressionPropertyKey_ThreadCount")]
- [Mac (10,8), iOS (8,0)]
NSString ThreadCount { get; }
[Field ("kVTDecompressionPropertyKey_FieldMode")]
- [Mac (10,8), iOS (8,0)]
NSString FieldMode { get; }
[Field ("kVTDecompressionProperty_FieldMode_BothFields")]
- [Mac (10,8), iOS (8,0)]
NSString FieldMode_BothFields { get; }
[Field ("kVTDecompressionProperty_FieldMode_TopFieldOnly")]
- [Mac (10,8), iOS (8,0)]
NSString FieldMode_TopFieldOnly { get; }
[Field ("kVTDecompressionProperty_FieldMode_BottomFieldOnly")]
- [Mac (10,8), iOS (8,0)]
NSString FieldMode_BottomFieldOnly { get; }
[Field ("kVTDecompressionProperty_FieldMode_SingleField")]
- [Mac (10,8), iOS (8,0)]
NSString FieldMode_SingleField { get; }
[Field ("kVTDecompressionProperty_FieldMode_DeinterlaceFields")]
- [Mac (10,8), iOS (8,0)]
NSString FieldMode_DeinterlaceFields { get; }
[Field ("kVTDecompressionPropertyKey_DeinterlaceMode")]
- [Mac (10,8), iOS (8,0)]
NSString DeinterlaceMode { get; }
[Field ("kVTDecompressionProperty_DeinterlaceMode_VerticalFilter")]
- [Mac (10,8), iOS (8,0)]
NSString DeinterlaceMode_VerticalFilter { get; }
[Field ("kVTDecompressionProperty_DeinterlaceMode_Temporal")]
- [Mac (10,8), iOS (8,0)]
NSString DeinterlaceMode_Temporal { get; }
[Field ("kVTDecompressionPropertyKey_ReducedResolutionDecode")]
- [Mac (10,8), iOS (8,0)]
NSString ReducedResolutionDecode { get; }
[Field ("kVTDecompressionPropertyKey_ReducedCoefficientDecode")]
- [Mac (10,8), iOS (8,0)]
NSString ReducedCoefficientDecode { get; }
[Field ("kVTDecompressionPropertyKey_ReducedFrameDelivery")]
- [Mac (10,8), iOS (8,0)]
NSString ReducedFrameDelivery { get; }
[Field ("kVTDecompressionPropertyKey_OnlyTheseFrames")]
- [Mac (10,8), iOS (8,0)]
NSString OnlyTheseFrames { get; }
[Field ("kVTDecompressionProperty_OnlyTheseFrames_AllFrames")]
- [Mac (10,8), iOS (8,0)]
NSString OnlyTheseFrames_AllFrames { get; }
[Field ("kVTDecompressionProperty_OnlyTheseFrames_NonDroppableFrames")]
- [Mac (10,8), iOS (8,0)]
NSString OnlyTheseFrames_NonDroppableFrames { get; }
[Field ("kVTDecompressionProperty_OnlyTheseFrames_IFrames")]
- [Mac (10,8), iOS (8,0)]
NSString OnlyTheseFrames_IFrames { get; }
[Field ("kVTDecompressionProperty_OnlyTheseFrames_KeyFrames")]
- [Mac (10,8), iOS (8,0)]
NSString OnlyTheseFrames_KeyFrames { get; }
[Field ("kVTDecompressionPropertyKey_SuggestedQualityOfServiceTiers")]
- [Mac (10,8), iOS (8,0)]
NSString SuggestedQualityOfServiceTiers { get; }
[Field ("kVTDecompressionPropertyKey_SupportedPixelFormatsOrderedByQuality")]
- [Mac (10,8), iOS (8,0)]
NSString SupportedPixelFormatsOrderedByQuality { get; }
[Field ("kVTDecompressionPropertyKey_SupportedPixelFormatsOrderedByPerformance")]
- [Mac (10,8), iOS (8,0)]
NSString SupportedPixelFormatsOrderedByPerformance { get; }
[Field ("kVTDecompressionPropertyKey_PixelFormatsWithReducedResolutionSupport")]
- [Mac (10,8), iOS (8,0)]
NSString PixelFormatsWithReducedResolutionSupport { get; }
//Post-decompression processing
[Field ("kVTDecompressionPropertyKey_PixelTransferProperties")]
- [Mac (10,8), iOS (8,0)]
NSString PixelTransferProperties { get; }
}
+ [Mac (10,8), iOS (8,0), TV (10,2)]
[StrongDictionary ("VTDecompressionPropertyKey")]
interface VTDecompressionProperties {
- [Mac (10,8), iOS (8,0)]
+
[Export ("PixelBufferPoolIsShared")]
bool PixelBufferPoolIsShared { get; }
- [Mac (10,8), iOS (8,0)]
[Export ("OutputPoolRequestedMinimumBufferCount")]
uint OutputPoolRequestedMinimumBufferCount { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("NumberOfFramesBeingDecoded")]
uint NumberOfFramesBeingDecoded { get; }
- [Mac (10,8), iOS (8,0)]
[Export ("MinOutputPresentationTimeStampOfFramesBeingDecoded")]
NSDictionary MinOutputPresentationTimeStampOfFramesBeingDecoded { get; }
- [Mac (10,8), iOS (8,0)]
[Export ("MaxOutputPresentationTimeStampOfFramesBeingDecoded")]
NSDictionary MaxOutputPresentationTimeStampOfFramesBeingDecoded { get; }
- [Mac (10,8), iOS (8,0)]
[Export ("ContentHasInterframeDependencies")]
bool ContentHasInterframeDependencies { get; }
@@ -717,319 +605,274 @@ interface VTDecompressionProperties {
// hardware acceleration is default behavior on iOS. no opt-in required.
[Export ("UsingHardwareAcceleratedVideoDecoder")]
- [Mac (10,9)]
+ [Mac (10,9)]
bool UsingHardwareAcceleratedVideoDecoder { get; }
- [Mac (10,10), iOS (8,0)]
+ [Mac (10,10)]
[Export ("RealTime")]
bool RealTime { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("ThreadCount")]
uint ThreadCount { get; set; }
[StrongDictionary]
- [Mac (10,8), iOS (8,0)]
[Export ("ReducedResolutionDecode")]
VTDecompressionResolutionOptions ReducedResolutionDecode { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("ReducedCoefficientDecode")]
uint ReducedCoefficientDecode { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("ReducedFrameDelivery")]
float ReducedFrameDelivery { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("SuggestedQualityOfServiceTiers")]
NSDictionary[] SuggestedQualityOfServiceTiers { get; }
- [Mac (10,8), iOS (8,0)]
[Export ("SupportedPixelFormatsOrderedByQuality")]
CMPixelFormat[] SupportedPixelFormatsOrderedByQuality { get; }
- [Mac (10,8), iOS (8,0)]
[Export ("SupportedPixelFormatsOrderedByPerformance")]
CMPixelFormat[] SupportedPixelFormatsOrderedByPerformance { get; }
- [Mac (10,8), iOS (8,0)]
[Export ("PixelFormatsWithReducedResolutionSupport")]
CMPixelFormat[] PixelFormatsWithReducedResolutionSupport { get; }
- [Mac (10,8), iOS (8,0)]
[Advice ("Use Strongly typed version PixelTransferSettings")]
[Export ("PixelTransferProperties")]
NSDictionary PixelTransferProperties { get; set; }
// VTPixelTransferProperties are available in iOS 9 radar://22614931 https://trello.com/c/bTl6hRu9
[StrongDictionary]
- [Mac (10,8), iOS (9,0)]
+ [iOS (9,0)]
[Export ("PixelTransferProperties")]
VTPixelTransferProperties PixelTransferSettings { get; set; }
}
+ [Mac (10,9), iOS (8,0), TV (10,2)]
[StrongDictionary ("VTVideoDecoderSpecificationKeys")]
interface VTVideoDecoderSpecification {
[Export ("EnableHardwareAcceleratedVideoDecoder")]
- [Mac (10,9)]
bool EnableHardwareAcceleratedVideoDecoder { get; set; }
[Export ("RequireHardwareAcceleratedVideoDecoder")]
- [Mac (10,9)]
bool RequireHardwareAcceleratedVideoDecoder { get; set; }
}
+ [Mac (10,9), iOS (8,0), TV (10,2)]
[Static]
interface VTVideoDecoderSpecificationKeys {
[Field ("kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder")]
- [Mac (10,9), iOS (8,0)]
NSString EnableHardwareAcceleratedVideoDecoder { get; }
[Field ("kVTVideoDecoderSpecification_RequireHardwareAcceleratedVideoDecoder")]
- [Mac (10,9), iOS (8,0)]
NSString RequireHardwareAcceleratedVideoDecoder { get; }
}
+ [Mac (10,8), iOS (8,0), TV (10,2)]
[StrongDictionary ("VTDecompressionResolutionKeys")]
interface VTDecompressionResolutionOptions {
[Export ("Width")]
- [Mac (10,8), iOS (8,0)]
float Width { get; set; }
[Export ("Height")]
- [Mac (10,8), iOS (8,0)]
float Height { get; set; }
}
+ [Mac (10,8), iOS (8,0), TV (10,2)]
[Static]
interface VTDecompressionResolutionKeys {
[Field ("kVTDecompressionResolutionKey_Width")]
- [Mac (10,8), iOS (8,0)]
NSString Width { get; }
[Field ("kVTDecompressionResolutionKey_Height")]
- [Mac (10,8), iOS (8,0)]
NSString Height { get; }
}
// VTSession.h
+ [Mac (10,8), iOS (8,0), TV (10,2)]
[StrongDictionary ("VTPropertyKeys")]
interface VTPropertyOptions {
[Export ("ShouldBeSerialized")]
- [Mac (10,8), iOS (8,0)]
bool ShouldBeSerialized { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("SupportedValueMinimumKey")]
NSNumber SupportedValueMinimum { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("SupportedValueMaximumKey")]
NSNumber SupportedValueMaximum { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("SupportedValueListKey")]
NSNumber[] SupportedValueList { get; set; }
- [Mac (10,8), iOS (8,0)]
[Export ("DocumentationKey")]
NSString Documentation { get; set; }
}
+ [Mac (10,8), iOS (8,0), TV (10,2)]
[Static]
interface VTPropertyKeys {
- [Mac (10,8), iOS (8,0)]
[Field ("kVTPropertyTypeKey")]
NSString Type { get; }
- [Mac (10,8), iOS (8,0)]
[Field ("kVTPropertyReadWriteStatusKey")]
NSString ReadWriteStatus { get; }
- [Mac (10,8), iOS (8,0)]
[Field ("kVTPropertyShouldBeSerializedKey")]
NSString ShouldBeSerialized { get; }
- [Mac (10,8), iOS (8,0)]
[Field ("kVTPropertySupportedValueMinimumKey")]
NSString SupportedValueMinimumKey { get; }
- [Mac (10,8), iOS (8,0)]
[Field ("kVTPropertySupportedValueMaximumKey")]
NSString SupportedValueMaximumKey { get; }
- [Mac (10,8), iOS (8,0)]
[Field ("kVTPropertySupportedValueListKey")]
NSString SupportedValueListKey { get; }
- [Mac (10,8), iOS (8,0)]
[Field ("kVTPropertyDocumentationKey")]
NSString DocumentationKey { get; }
}
+ [Mac (10,8), iOS (8,0), TV (10,2)]
[Static]
interface VTPropertyTypeKeys {
- [Mac (10,8), iOS (8,0)]
[Field ("kVTPropertyType_Boolean")]
NSString Boolean { get; }
- [Mac (10,8), iOS (8,0)]
[Field ("kVTPropertyType_Enumeration")]
NSString Enumeration { get; }
- [Mac (10,8), iOS (8,0)]
[Field ("kVTPropertyType_Number")]
NSString Number { get; }
}
+ [Mac (10,8), iOS (8,0), TV (10,2)]
[Static]
interface VTPropertyReadWriteStatusKeys {
- [Mac (10,8), iOS (8,0)]
[Field ("kVTPropertyReadWriteStatus_ReadOnly")]
NSString ReadOnly { get; }
- [Mac (10,8), iOS (8,0)]
[Field ("kVTPropertyReadWriteStatus_ReadWrite")]
NSString ReadWrite { get; }
}
// VTVideoEncoderList.h
+ [Mac (10,8), iOS (8,0), TV (10,2)]
[Static]
[Internal]
interface VTVideoEncoderList {
- [Mac (10,8), iOS (8,0)]
[Field ("kVTVideoEncoderList_CodecName")]
NSString CodecName { get; }
- [Mac (10,8), iOS (8,0)]
[Field ("kVTVideoEncoderList_CodecType")]
NSString CodecType { get; }
- [Mac (10,8), iOS (8,0)]
[Field ("kVTVideoEncoderList_DisplayName")]
NSString DisplayName { get; }
- [Mac (10,8), iOS (8,0)]
[Field ("kVTVideoEncoderList_EncoderID")]
NSString EncoderID { get; }
- [Mac (10,8), iOS (8,0)]
[Field ("kVTVideoEncoderList_EncoderName")]
NSString EncoderName { get; }
}
// VTMultiPassStorage.h
+ [Mac (10,10), iOS (8,0), TV (10,2)] // not decorated in the header files - but all other definitions are 10.10 & 8.0
[Static]
interface VTMultiPassStorageCreationOptionKeys {
[Field ("kVTMultiPassStorageCreationOption_DoNotDelete")]
- [Mac (10,10), iOS (8,0)] // not decorated in the header files - but all other definitions are 10.10 & 8.0
NSString DoNotDelete { get; }
}
+ [Mac (10,8), iOS (8,0), TV (10,2)]
[StrongDictionary ("VTMultiPassStorageCreationOptionKeys")]
interface VTMultiPassStorageCreationOptions {
[Export ("DoNotDelete")]
- [Mac (10,8), iOS (8,0)]
bool DoNotDelete { get; set; }
}
// VTPixelTransferProperties are available in iOS 9 radar://22614931 https://trello.com/c/bTl6hRu9
+ [Mac (10,8), iOS (9,0), TV (10,2)]
[StrongDictionary ("VTPixelTransferPropertyKeys")]
interface VTPixelTransferProperties {
[StrongDictionary]
- [Mac (10,8), iOS (9,0)]
[Export ("DestinationCleanAperture")]
AVVideoCleanApertureSettings DestinationCleanAperture { get; set; }
[StrongDictionary]
- [Mac (10,8), iOS (9,0)]
[Export ("DestinationPixelAspectRatio")]
AVVideoPixelAspectRatioSettings DestinationPixelAspectRatio { get; set; }
[iOS (10,0)]
- [Mac (10,8)]
[Export ("DestinationICCProfile")]
NSData DestinationICCProfile { get; set; }
}
// VTPixelTransferProperties are available in iOS 9 radar://22614931 https://trello.com/c/bTl6hRu9
+ [Mac (10,8), iOS (9,0), TV (10,2)]
[Static]
[AdvancedAttribute]
interface VTPixelTransferPropertyKeys {
// ScalingMode
- [Mac (10,8), iOS (9,0)]
[Field ("kVTPixelTransferPropertyKey_ScalingMode")]
NSString ScalingMode { get; }
- [Mac (10,8), iOS (9,0)]
[Field ("kVTScalingMode_Normal")]
NSString ScalingMode_Normal { get; }
- [Mac (10,8), iOS (9,0)]
[Field ("kVTScalingMode_CropSourceToCleanAperture")]
NSString ScalingMode_CropSourceToCleanAperture { get; }
- [Mac (10,8), iOS (9,0)]
[Field ("kVTScalingMode_Letterbox")]
NSString ScalingMode_Letterbox { get; }
- [Mac (10,8), iOS (9,0)]
[Field ("kVTScalingMode_Trim")]
NSString ScalingMode_Trim { get; }
// DestinationCleanAperture
- [Mac (10,8), iOS (9,0)]
[Field ("kVTPixelTransferPropertyKey_DestinationCleanAperture")]
NSString DestinationCleanAperture { get; }
// DestinationCleanAperture
- [Mac (10,8), iOS (9,0)]
[Field ("kVTPixelTransferPropertyKey_DestinationPixelAspectRatio")]
NSString DestinationPixelAspectRatio { get; }
// DownsamplingMode
- [Mac (10,8), iOS (9,0)]
[Field ("kVTPixelTransferPropertyKey_DownsamplingMode")]
NSString DownsamplingMode { get; }
- [Mac (10,8), iOS (9,0)]
[Field ("kVTDownsamplingMode_Decimate")]
NSString DownsamplingMode_Decimate { get; }
- [Mac (10,8), iOS (9,0)]
[Field ("kVTDownsamplingMode_Average")]
NSString DownsamplingMode_Average { get; }
// DestinationColorPrimaries
[iOS (10,0)]
- [Mac (10,8)]
[Field ("kVTPixelTransferPropertyKey_DestinationColorPrimaries")]
NSString DestinationColorPrimaries { get; }
// DestinationColorPrimaries
[iOS (10,0)]
- [Mac (10,8)]
[Field ("kVTPixelTransferPropertyKey_DestinationTransferFunction")]
NSString DestinationTransferFunction { get; }
// DestinationICCProfile
[iOS (10,0)]
- [Mac (10,8)]
[Field ("kVTPixelTransferPropertyKey_DestinationICCProfile")]
NSString DestinationICCProfile { get; }
// DestinationYCbCrMatrix
- [Mac (10,8), iOS (9,0)]
[Field ("kVTPixelTransferPropertyKey_DestinationYCbCrMatrix")]
NSString DestinationYCbCrMatrix { get; }
}
diff --git a/src/watchkit.cs b/src/watchkit.cs
index 3737160bb12d..82b49d036042 100644
--- a/src/watchkit.cs
+++ b/src/watchkit.cs
@@ -772,7 +772,18 @@ interface WKAudioFilePlayerItem {
NSError Error { get; }
[Export ("currentTime")]
- double CurrentTime { get; }
+ double CurrentTime {
+ get;
+#if XAMCORE_4_0
+ [Watch (3,2)]
+ set;
+ }
+#else
+ }
+ [Watch (3,2)]
+ [Export ("setCurrentTime:")]
+ void SetCurrentTime (double time);
+#endif
[Watch (2,0), NoiOS]
[Notification]
@@ -857,6 +868,10 @@ interface WKExtensionDelegate {
[Export ("handleUserActivity:")]
void HandleUserActivity ([NullAllowed] NSDictionary userInfo);
+ [Watch (3,2)] // TODO: Check if this is equal/similar to HandleUserActivity once docs are available
+ [Export ("handleActivity:")]
+ void HandleUserActivity (NSUserActivity userActivity);
+
[Deprecated (PlatformName.WatchOS, 3,0, message: "Use UNUserNotificationCenterDelegate")]
[Export ("didReceiveRemoteNotification:")]
void DidReceiveRemoteNotification (NSDictionary userInfo);
diff --git a/src/webkit.cs b/src/webkit.cs
index 7e915be89ebd..7332dfdc886d 100644
--- a/src/webkit.cs
+++ b/src/webkit.cs
@@ -1891,8 +1891,8 @@ partial interface WebFrame {
#if XAMCORE_2_0
[Mac (10,10, onlyOn64 : true)]
- [Export ("javaScriptContext", ArgumentSemantic.Strong)]
- JSContext JavaScriptContext { get; }
+ [Export ("javaScriptContext", ArgumentSemantic.Strong)]
+ JSContext JavaScriptContext { get; }
#endif
}
@@ -2406,8 +2406,8 @@ partial interface WebScriptObject {
#if XAMCORE_2_0
[Mac (10,10, onlyOn64 : true)]
- [Export ("JSValue")]
- JSValue JSValue { get; }
+ [Export ("JSValue")]
+ JSValue JSValue { get; }
#endif
}
diff --git a/src/wkwebkit.cs b/src/wkwebkit.cs
index f513e6301298..0e4062fddb0b 100644
--- a/src/wkwebkit.cs
+++ b/src/wkwebkit.cs
@@ -176,6 +176,11 @@ interface WKPreferences : NSCoding {
[Export ("plugInsEnabled")]
bool PlugInsEnabled { get; set; }
+
+ // Headers says 10,12,3 but it is not available likely they meant 10,12,4
+ [Mac (10,12,4, onlyOn64 : true)]
+ [Export ("tabFocusesLinks")]
+ bool TabFocusesLinks { get; set; }
#endif
}
diff --git a/tests/apitest/src/EveryFrameworkSmokeTest.cs b/tests/apitest/src/EveryFrameworkSmokeTest.cs
index 2cda77a1b719..1fd411d89865 100644
--- a/tests/apitest/src/EveryFrameworkSmokeTest.cs
+++ b/tests/apitest/src/EveryFrameworkSmokeTest.cs
@@ -68,6 +68,7 @@ LoadStatus CheckLoadFailure (string libraryName, string path)
case "SpriteKitLibrary":
case "PhotosLibrary":
case "IntentsLibrary":
+ // support removed in Sierra
case "MediaPlayerLibrary":
return LoadStatus.Acceptable;
}
diff --git a/tests/bindings-framework-test/bindings-framework-test.csproj b/tests/bindings-framework-test/bindings-framework-test.csproj
index d363fd2494c1..06c7f3f09306 100644
--- a/tests/bindings-framework-test/bindings-framework-test.csproj
+++ b/tests/bindings-framework-test/bindings-framework-test.csproj
@@ -36,6 +36,17 @@
4
True
+
+ none
+ True
+ bin\Any CPU\$(Configuration)-bitcode-unified
+ DO_NOT_REMOVE;FRAMEWORK_TEST;$(DefineConstants)
+ prompt
+ 4
+ True
+ --bitcode:full
+ true
+
diff --git a/tests/common/Configuration.cs b/tests/common/Configuration.cs
index 097bc179eef2..28a54bf65443 100644
--- a/tests/common/Configuration.cs
+++ b/tests/common/Configuration.cs
@@ -241,12 +241,6 @@ public static string BinDirXM {
}
}
- static string XSIphoneDir {
- get {
- return Path.Combine (XS_PATH, "lib", "monodevelop", "AddIns", "MonoDevelop.IPhone");
- }
- }
-
public static string SmcsPath {
get {
return Path.Combine (SdkBinDir, "smcs");
diff --git a/tests/common/TestRuntime.cs b/tests/common/TestRuntime.cs
index 1938b0700f09..d3432b60e594 100644
--- a/tests/common/TestRuntime.cs
+++ b/tests/common/TestRuntime.cs
@@ -126,6 +126,18 @@ public static bool CheckXcodeVersion (int major, int minor, int build = 0)
return CheckMacSystemVersion (10, 12, 2);
#else
throw new NotImplementedException ();
+#endif
+ case 3:
+#if __WATCHOS__
+ return CheckWatchOSSystemVersion (3, 2);
+#elif __TVOS__
+ return ChecktvOSSystemVersion (10, 2);
+#elif __IOS__
+ return CheckiOSSystemVersion (10, 3);
+#elif MONOMAC
+ return CheckMacSystemVersion (10, 12, 4);
+#else
+ throw new NotImplementedException ();
#endif
default:
throw new NotImplementedException ();
diff --git a/tests/common/mac/ProjectTestHelpers.cs b/tests/common/mac/ProjectTestHelpers.cs
index da9e5aa3339c..a90dc965db29 100644
--- a/tests/common/mac/ProjectTestHelpers.cs
+++ b/tests/common/mac/ProjectTestHelpers.cs
@@ -467,4 +467,4 @@ public static int RunCommand (string path, string args, string[] env = null, Str
}
}
}
-#endif
\ No newline at end of file
+#endif
diff --git a/tests/introspection/ApiCMAttachmentTest.cs b/tests/introspection/ApiCMAttachmentTest.cs
index b3a3bfd3d71a..d4f312b5027b 100644
--- a/tests/introspection/ApiCMAttachmentTest.cs
+++ b/tests/introspection/ApiCMAttachmentTest.cs
@@ -24,6 +24,7 @@
using SystemConfiguration;
using ObjCRuntime;
using Security;
+using VideoToolbox;
using UIKit;
#else
using MonoTouch.AudioToolbox;
@@ -38,19 +39,10 @@
using MonoTouch.SystemConfiguration;
using MonoTouch.ObjCRuntime;
using MonoTouch.Security;
-using MonoTouch.UIKit;
-#endif
-
-#if !__TVOS__
-
-#if XAMCORE_2_0
-using VideoToolbox;
-#else
using MonoTouch.VideoToolbox;
+using MonoTouch.UIKit;
#endif
-#endif
-
namespace Introspection {
[TestFixture]
@@ -383,7 +375,6 @@ protected INativeObject GetINativeInstance (Type t)
return new UIFontFeature (CTFontFeatureNumberSpacing.Selector.ProportionalNumbers);
case "NetworkReachability":
return new NetworkReachability (IPAddress.Loopback, null);
-#if !__TVOS__
case "VTCompressionSession":
case "VTSession":
return VTCompressionSession.Create (1024, 768, CMVideoCodecType.H264, (sourceFrame, status, flags, buffer) => { }, null, (CVPixelBufferAttributes) null);
@@ -391,7 +382,6 @@ protected INativeObject GetINativeInstance (Type t)
return VTFrameSilo.Create ();
case "VTMultiPassStorage":
return VTMultiPassStorage.Create ();
-#endif
case "CFString":
return new CFString ("test");
case "DispatchQueue":
diff --git a/tests/introspection/ApiCtorInitTest.cs b/tests/introspection/ApiCtorInitTest.cs
index a0fe3c37431e..d0111c6823e9 100644
--- a/tests/introspection/ApiCtorInitTest.cs
+++ b/tests/introspection/ApiCtorInitTest.cs
@@ -64,6 +64,7 @@ protected virtual bool Skip (Type type)
if (ca is ModelAttribute)
return true;
}
+
switch (type.Name) {
#if !XAMCORE_2_0
case "AVAssetResourceLoader": // We have DisableDefaultCtor in XAMCORE_2_0 but can't change in compat because of backwards compat
diff --git a/tests/introspection/ApiSelectorTest.cs b/tests/introspection/ApiSelectorTest.cs
index da929294ffaa..8711feda9ef5 100644
--- a/tests/introspection/ApiSelectorTest.cs
+++ b/tests/introspection/ApiSelectorTest.cs
@@ -153,6 +153,13 @@ protected virtual bool Skip (Type type, string selectorName)
#endif
// This ctors needs to be manually bound
switch (type.Name) {
+ case "AVCaptureVideoPreviewLayer":
+ switch (selectorName) {
+ case "initWithSession:":
+ case "initWithSessionWithNoConnection:":
+ return true;
+ }
+ break;
case "GKPath":
switch (selectorName) {
case "initWithPoints:count:radius:cyclical:":
@@ -173,6 +180,10 @@ protected virtual bool Skip (Type type, string selectorName)
case "initHemisphereWithExtent:segments:inwardNormals:cap:geometryType:allocator:":
case "initMeshBySubdividingMesh:submeshIndex:subdivisionLevels:allocator:":
case "initSphereWithExtent:segments:inwardNormals:geometryType:allocator:":
+ case "initBoxWithExtent:segments:inwardNormals:geometryType:allocator:":
+ case "initCylinderWithExtent:segments:inwardNormals:topCap:bottomCap:geometryType:allocator:":
+ case "initIcosahedronWithExtent:inwardNormals:geometryType:allocator:":
+ case "initPlaneWithExtent:segments:geometryType:allocator:":
return true;
}
break;
diff --git a/tests/introspection/ApiTypoTest.cs b/tests/introspection/ApiTypoTest.cs
index e785a72dd217..67de630e3795 100644
--- a/tests/introspection/ApiTypoTest.cs
+++ b/tests/introspection/ApiTypoTest.cs
@@ -65,14 +65,17 @@ public virtual bool Skip (MemberInfo methodName, string typo) {
"Acos",
"Actionname",
"Activitiy",
+ "Addin",
"Addr",
"Adjustmentfor",
"Aifc",
"Aiff",
+ "Alg", // short for Algorithm
"Amete",
"Amr",
"Anglet",
"Arraycollation",
+ "Argb",
"Asin",
"Atan",
"Ats", // App Transport Security
@@ -84,6 +87,7 @@ public virtual bool Skip (MemberInfo methodName, string typo) {
"Autoredirect",
"Aliasable",
"Backface",
+ "Bancaire",
"Bary",
"Batc",
"Bim",
@@ -175,6 +179,7 @@ public virtual bool Skip (MemberInfo methodName, string typo) {
"Geocoder",
"Gigapascals",
"Gpp",
+ "Gpu", // acronym for Graphics Processing Unit
"Grbg", // acronym for Green-Red-Blue-Green
"Hdmi",
"Hdr",
@@ -273,7 +278,9 @@ public virtual bool Skip (MemberInfo methodName, string typo) {
"Orthographyrange",
"ove",
"Paeth", // PNG filter
+ "Parms", // short for Parameters
"Perlin",
+ "Persistable",
"Pausable",
"Pcl",
"Pcm",
@@ -289,6 +296,7 @@ public virtual bool Skip (MemberInfo methodName, string typo) {
"Pointillize",
"Polyline",
"Popularimeter",
+ "Preds", // short for Predicates
"Prerolls",
"Preseti",
"Propogate",
@@ -296,6 +304,7 @@ public virtual bool Skip (MemberInfo methodName, string typo) {
"Pvrtc", // MTLBlitOption - PowerVR Texture Compression
"Quaterniond",
"Qura",
+ "Quic",
"Reacquirer",
"Reinvitation",
"Reinvite",
diff --git a/tests/introspection/Mac/MacApiCtorInitTest.cs b/tests/introspection/Mac/MacApiCtorInitTest.cs
index 9165cd462dd3..e72c5da330ff 100644
--- a/tests/introspection/Mac/MacApiCtorInitTest.cs
+++ b/tests/introspection/Mac/MacApiCtorInitTest.cs
@@ -182,6 +182,8 @@ protected override void CheckToString (NSObject obj)
switch (obj.GetType ().FullName) {
// Crashes on 10.12
case "Contacts.CNContainer":
+ case "AppKit.NSTouch":
+ case "MonoMac.AppKit.NSTouch":
// native crash calling MonoMac.Foundation.NSObject.get_Description ()
case "WebKit.WKNavigationAction":
case "WebKit.WKFrameInfo": // EXC_BAD_ACCESS (code=1, address=0x0)
diff --git a/tests/introspection/iOS/iOSApiProtocolTest.cs b/tests/introspection/iOS/iOSApiProtocolTest.cs
index 1ddc34f845a6..614c40e0a773 100644
--- a/tests/introspection/iOS/iOSApiProtocolTest.cs
+++ b/tests/introspection/iOS/iOSApiProtocolTest.cs
@@ -179,6 +179,9 @@ protected override bool Skip (Type type, string protocolName)
case "VSAccountMetadataRequest":
// iOS 10.2
case "VSAccountProviderResponse":
+ // iOS 10.3
+ case "MPMusicPlayerControllerMutableQueue":
+ case "MPMusicPlayerControllerQueue":
return true;
#if __WATCHOS__
case "CLKComplicationTemplate":
@@ -278,6 +281,9 @@ protected override bool Skip (Type type, string protocolName)
case "VSAccountMetadataRequest":
// iOS 10.2
case "VSAccountProviderResponse":
+ // iOS 10.3
+ case "MPMusicPlayerControllerMutableQueue":
+ case "MPMusicPlayerControllerQueue":
return true;
#if __WATCHOS__
case "CLKComplicationTemplate":
@@ -366,6 +372,9 @@ protected override bool Skip (Type type, string protocolName)
case "NSMutableCopying":
switch (type.Name) {
case "UNNotificationSound":
+ // iOS 10.3
+ case "MPMusicPlayerControllerMutableQueue":
+ case "MPMusicPlayerControllerQueue":
return true;
}
break;
diff --git a/tests/introspection/iOS/iOSApiSelectorTest.cs b/tests/introspection/iOS/iOSApiSelectorTest.cs
index dbba119c4517..43e813f60549 100644
--- a/tests/introspection/iOS/iOSApiSelectorTest.cs
+++ b/tests/introspection/iOS/iOSApiSelectorTest.cs
@@ -94,7 +94,6 @@ protected override bool Skip (Type type)
// to a MTLHeapDescriptorInternal and don't respond - so we'll add unit tests for them
case "MTLHeapDescriptor":
return Runtime.Arch == Arch.DEVICE;
-
default:
return base.Skip (type);
}
diff --git a/tests/linker-ios/link all/link all.csproj b/tests/linker-ios/link all/link all.csproj
index 339e46176243..99ca5d01bde6 100644
--- a/tests/linker-ios/link all/link all.csproj
+++ b/tests/linker-ios/link all/link all.csproj
@@ -85,6 +85,21 @@
ARM64
-gcc_flags="-UhoItsB0rken"
+
+ True
+ full
+ False
+ bin\iPhone\$(Configuration)-unified
+ DEBUG;LINKALL;;$(DefineConstants)
+ prompt
+ 4
+ iPhone Developer
+ True
+ Full
+ mideast,other
+ ARM64
+ --tls-provider=legacy -gcc_flags="-UhoItsB0rken"
+
none
False
diff --git a/tests/monotouch-test/CoreVideo/CoreVideoEnumsTest.cs b/tests/monotouch-test/CoreVideo/CoreVideoEnumsTest.cs
index 2f13810a69b7..93a4645623cc 100644
--- a/tests/monotouch-test/CoreVideo/CoreVideoEnumsTest.cs
+++ b/tests/monotouch-test/CoreVideo/CoreVideoEnumsTest.cs
@@ -81,6 +81,7 @@ public void PixelFormatType ()
Assert.That (FourCC ((int) CVPixelFormatType.CV14BayerRggb), Is.EqualTo ("rgg4"), "CV14Bayer_Rggb");
Assert.That (FourCC ((int) CVPixelFormatType.CV14BayerBggr), Is.EqualTo ("bgg4"), "CV14Bayer_Bggr");
Assert.That (FourCC ((int) CVPixelFormatType.CV14BayerGbrg), Is.EqualTo ("gbr4"), "CV14Bayer_Gbrg");
+ Assert.That (FourCC ((int) CVPixelFormatType.Argb2101010LEPacked), Is.EqualTo ("l10r"), "Argb2101010LEPacked");
}
}
}
diff --git a/tests/monotouch-test/Intents/INIntentResolutionResultTests.cs b/tests/monotouch-test/Intents/INIntentResolutionResultTests.cs
index fcd96820434b..f52e86856f78 100644
--- a/tests/monotouch-test/Intents/INIntentResolutionResultTests.cs
+++ b/tests/monotouch-test/Intents/INIntentResolutionResultTests.cs
@@ -8,7 +8,7 @@
// Copyright 2016 Xamarin Inc. All rights reserved.
//
-#if !__TVOS__ && !__WATCHOS__ && XAMCORE_2_0
+#if !__TVOS__ && XAMCORE_2_0
using System;
using NUnit.Framework;
@@ -25,7 +25,11 @@ public class INIntentResolutionResultTests {
[SetUp]
public void Setup ()
{
+#if !__WATCHOS__
TestRuntime.AssertXcodeVersion (8, 0);
+#else
+ TestRuntime.AssertXcodeVersion (8, 3);
+#endif
}
[Test]
@@ -357,6 +361,7 @@ public void INRelativeSettingResolutionResultPropertyTest ()
}
}
+#if !__WATCHOS__
[Test]
public void INRestaurantGuestResolutionResultPropertyTest ()
{
@@ -388,6 +393,7 @@ public void INRestaurantResolutionResultPropertyTest ()
Assert.IsInstanceOfType (typeof (INRestaurantResolutionResult), unsupported, "Unsupported");
}
}
+#endif
[Test]
public void INTemperatureResolutionResultPropertyTest ()
diff --git a/tests/monotouch-test/MediaPlayer/MediaItemTest.cs b/tests/monotouch-test/MediaPlayer/MediaItemTest.cs
index 02d2be49c73d..f9db9e2a47ab 100644
--- a/tests/monotouch-test/MediaPlayer/MediaItemTest.cs
+++ b/tests/monotouch-test/MediaPlayer/MediaItemTest.cs
@@ -37,6 +37,7 @@ public void DefaultValues ()
var six_dot_oh = TestRuntime.CheckSystemAndSDKVersion (6, 0);
var nine_dot_two = TestRuntime.CheckSystemAndSDKVersion (9, 2);
var ten_dot_oh = TestRuntime.CheckSystemAndSDKVersion (10, 0);
+ var ten_dot_three = TestRuntime.CheckSystemAndSDKVersion (10, 3);
foreach (var i in items) {
object dummy;
@@ -81,6 +82,8 @@ public void DefaultValues ()
Assert.DoesNotThrow (() => dummy = i.IsExplicitItem, "IsExplicitItem");
Assert.DoesNotThrow (() => dummy = i.DateAdded, "DateAdded");
}
+ if (ten_dot_three)
+ Assert.DoesNotThrow (() => dummy = i.PlaybackStoreID, "PlaybackStoreID");
}
}
}
diff --git a/tests/monotouch-test/MediaPlayer/NowPlayingInfoCenterTest.cs b/tests/monotouch-test/MediaPlayer/NowPlayingInfoCenterTest.cs
index 6bd65c1de2a7..a44545f0a340 100644
--- a/tests/monotouch-test/MediaPlayer/NowPlayingInfoCenterTest.cs
+++ b/tests/monotouch-test/MediaPlayer/NowPlayingInfoCenterTest.cs
@@ -30,6 +30,7 @@ public class NowPlayingInfoCenterTest
bool v8_0 = TestRuntime.CheckSystemAndSDKVersion (8, 0);
bool v9_0 = TestRuntime.CheckSystemAndSDKVersion (9, 0);
bool v10_0 = TestRuntime.CheckSystemAndSDKVersion (10, 0);
+ bool v10_3 = TestRuntime.CheckSystemAndSDKVersion (10, 3);
[SetUp]
public void SetUp ()
@@ -59,6 +60,7 @@ public void SetUp ()
PlaybackProgress = 0.5f,
MediaType = MPNowPlayingInfoMediaType.Audio,
IsLiveStream = false,
+ AssetUrl = new NSUrl ("https://developer.xamarin.com"),
//MPMediaItem
AlbumTitle = "AlbumTitle",
@@ -118,6 +120,9 @@ public void NowPlaying ()
Assert.IsInstanceOfType (typeof (ulong), np.PersistentID, "#25");
Assert.IsInstanceOfType (typeof (double), np.PlaybackDuration, "#26");
Assert.IsInstanceOfType (typeof (string), (object)np.Title, "#27");
+
+ if (v10_3)
+ Assert.IsInstanceOfType (typeof (NSUrl), np.AssetUrl, "#28");
}
}
}
diff --git a/tests/monotouch-test/ModelIO/MDLMesh.cs b/tests/monotouch-test/ModelIO/MDLMesh.cs
index 8aac8bb3fddc..e92c1280c08b 100644
--- a/tests/monotouch-test/ModelIO/MDLMesh.cs
+++ b/tests/monotouch-test/ModelIO/MDLMesh.cs
@@ -90,7 +90,7 @@ public void Setup ()
}
[Test]
- public void CreateBoxTest ()
+ public void CreateBoxWithDimensonTest ()
{
Vector3 V3 = new Vector3 (1, 2, 3);
Vector3i V3i = new Vector3i (4, 5, 6);
@@ -106,6 +106,23 @@ public void CreateBoxTest ()
}
}
+ [Test]
+ public void CreateBoxWithExtentTest ()
+ {
+ Vector3 V3 = new Vector3 (1, 2, 3);
+ Vector3i V3i = new Vector3i (4, 5, 6);
+
+ using (var obj = MDLMesh.CreateBox (V3, V3i, MDLGeometryType.Triangles, true, null, MDLMesh.MDLMeshVectorType.Extent)) {
+ Assert.IsNotNull (obj, "obj");
+ Asserts.AreEqual (new MDLAxisAlignedBoundingBox { MaxBounds = new Vector3 (0.5f, 1, 1.5f), MinBounds = new Vector3 (-0.5f, -1, -1.5f) }, obj.BoundingBox, "BoundingBox");
+ Assert.AreEqual (1, obj.Submeshes.Count, "Submeshes Count");
+ Assert.AreEqual (1, obj.VertexBuffers.Length, "VertexBuffers Count");
+ Assert.AreEqual (TestRuntime.CheckXcodeVersion (7, 3) ? 214 : 24, obj.VertexCount, "VertexCount");
+ Assert.AreEqual (31, obj.VertexDescriptor.Attributes.Count, "VertexDescriptor Attributes Count");
+ Assert.AreEqual (31, obj.VertexDescriptor.Layouts.Count, "VertexDescriptor Layouts Count");
+ }
+ }
+
[Test]
public void CreatePlaneTest ()
{
@@ -178,23 +195,39 @@ public void CreateCylindroidTest ()
}
[Test]
- public void CreateEllipticalConeTest ()
+ public void CreateCylinderTest ()
{
- var V2 = new Vector2 (1, 1);
+ var V3 = new Vector3 (1, 1, 1);
+ var V2i = new Vector2i (3, 3);
- using (var obj = MDLMesh.CreateEllipticalCone (5, V2, 3, 1, MDLGeometryType.Triangles, true, null)) {
+ using (var obj = MDLMesh.CreateCylinder (V3, V2i, true, true, true, MDLGeometryType.Triangles, null)) {
Assert.IsNotNull (obj, "obj");
if (TestRuntime.CheckXcodeVersion (8, 2)) {
- Asserts.AreEqual (new MDLAxisAlignedBoundingBox { MaxBounds = new Vector3 (0.433012783f, 4.5f, 0.5f), MinBounds = new Vector3 (-0.433012783f, -0.5f, -0.25f) }, obj.BoundingBox, "BoundingBox");
+ Asserts.AreEqual (new MDLAxisAlignedBoundingBox { MaxBounds = new Vector3 (0.866025448f, 0.5f, 1f), MinBounds = new Vector3 (-0.866025388f, -0.5f, -0.5f) }, obj.BoundingBox, "BoundingBox");
Assert.AreEqual (31, obj.VertexBuffers.Length, "VertexBuffers Count");
} else if (TestRuntime.CheckXcodeVersion (8, 0)) {
- Asserts.AreEqual (new MDLAxisAlignedBoundingBox { MaxBounds = new Vector3 (0.433012783f, 4.5f, 0.5f), MinBounds = new Vector3 (-0.433012783f, -0.5f, -0.25f) }, obj.BoundingBox, "BoundingBox");
+ Asserts.AreEqual (new MDLAxisAlignedBoundingBox { MaxBounds = new Vector3 (0.866025448f, 1.0f, 1f), MinBounds = new Vector3 (-0.866025388f, -1.0f, -0.5f) }, obj.BoundingBox, "BoundingBox");
Assert.AreEqual (3, obj.VertexBuffers.Length, "VertexBuffers Count");
} else {
- Asserts.AreEqual (new MDLAxisAlignedBoundingBox { MaxBounds = new Vector3 (0.866025448f, 0f, 1f), MinBounds = new Vector3 (-0.866025388f, -5f, -0.50000006f) }, obj.BoundingBox, "BoundingBox");
+ Asserts.AreEqual (new MDLAxisAlignedBoundingBox { MaxBounds = new Vector3 (1f, 0.5f, 1f), MinBounds = new Vector3 (-0.866025388f, -0.5f, -0.866025388f) }, obj.BoundingBox, "BoundingBox");
Assert.AreEqual (1, obj.VertexBuffers.Length, "VertexBuffers Count");
}
Assert.AreEqual (1, obj.Submeshes.Count, "Submeshes Count");
+ Assert.AreEqual (26, obj.VertexCount, "VertexCount");
+ Assert.AreEqual (31, obj.VertexDescriptor.Attributes.Count, "VertexDescriptor Attributes Count");
+ Assert.AreEqual (31, obj.VertexDescriptor.Layouts.Count, "VertexDescriptor Layouts Count");
+ }
+ }
+
+ [Test]
+ public void CreateEllipticalConeTest ()
+ {
+ var V2 = new Vector2 (1, 1);
+
+ using (var obj = MDLMesh.CreateEllipticalCone (5, V2, 3, 1, MDLGeometryType.Triangles, true, null)) {
+ Assert.IsNotNull (obj, "obj");
+ Assert.That (obj.VertexBuffers.Length, Is.GreaterThanOrEqualTo (1), "VertexBuffers Length");
+ Assert.AreEqual (1, obj.Submeshes.Count, "Submeshes Count");
Assert.AreEqual (13, obj.VertexCount, "VertexCount");
Assert.AreEqual (31, obj.VertexDescriptor.Attributes.Count, "VertexDescriptor Attributes Count");
Assert.AreEqual (31, obj.VertexDescriptor.Layouts.Count, "VertexDescriptor Layouts Count");
@@ -249,15 +282,9 @@ public void CreateCapsuleTest ()
using (var obj = MDLMesh.CreateCapsule (V3, V2i, MDLGeometryType.Triangles, true, 10, null)) {
Assert.IsNotNull (obj, "obj");
- if (TestRuntime.CheckXcodeVersion (8, 2)) {
- Asserts.AreEqual (new MDLAxisAlignedBoundingBox { MaxBounds = new Vector3 (0.6f, 1.166666f, 1.8f), MinBounds = new Vector3 (-0.6f, -0.83333f, -1.8f) }, obj.BoundingBox, "BoundingBox");
- Assert.AreEqual (122, obj.VertexCount, "VertexCount");
- } else {
- Asserts.AreEqual (new MDLAxisAlignedBoundingBox { MaxBounds = new Vector3 (0.6f, 1.333333f, 1.8f), MinBounds = new Vector3 (-0.6f, -1, -1.8f) }, obj.BoundingBox, "BoundingBox");
- Assert.AreEqual (152, obj.VertexCount, "VertexCount");
- }
+ Assert.That (obj.VertexCount, Is.GreaterThanOrEqualTo (122), "VertexCount");
Assert.AreEqual (1, obj.Submeshes.Count, "Submeshes Count");
- Assert.AreEqual (3, obj.VertexBuffers.Length, "VertexBuffers Count");
+ Assert.That (obj.VertexBuffers.Length, Is.GreaterThanOrEqualTo (3), "VertexBuffers Count");
Assert.AreEqual (31, obj.VertexDescriptor.Attributes.Count, "VertexDescriptor Attributes Count");
Assert.AreEqual (31, obj.VertexDescriptor.Layouts.Count, "VertexDescriptor Layouts Count");
}
@@ -273,15 +300,49 @@ public void CreateConeTest ()
using (var obj = MDLMesh.CreateCone (V3, V2i, MDLGeometryType.Triangles, true, true, null)) {
Assert.IsNotNull (obj, "obj");
- Asserts.AreEqual (new MDLAxisAlignedBoundingBox { MaxBounds = new Vector3 (0.5f, -0.5f, 1.5f), MinBounds = new Vector3 (-0.5f, -2.5f, -1.5f) }, obj.BoundingBox, "BoundingBox");
Assert.AreEqual (1, obj.Submeshes.Count, "Submeshes Count");
- Assert.AreEqual (3, obj.VertexBuffers.Length, "VertexBuffers Count");
+ Assert.That (obj.VertexBuffers.Length, Is.GreaterThanOrEqualTo (3), "VertexBuffers Count");
Assert.AreEqual (36, obj.VertexCount, "VertexCount");
Assert.AreEqual (31, obj.VertexDescriptor.Attributes.Count, "VertexDescriptor Attributes Count");
Assert.AreEqual (31, obj.VertexDescriptor.Layouts.Count, "VertexDescriptor Layouts Count");
}
}
+ [Test]
+ public void CreatePaneTest ()
+ {
+ TestRuntime.AssertXcodeVersion (8, 0);
+
+ Vector3 V3 = new Vector3 (1, 2, 3);
+ Vector2i V2i = new Vector2i (4, 5);
+
+ using (var obj = MDLMesh.CreatePlane (V3, V2i, MDLGeometryType.Triangles, null)) {
+ Assert.IsNotNull (obj, "obj");
+ Assert.AreEqual (1, obj.Submeshes.Count, "Submeshes Count");
+ Assert.That (obj.VertexBuffers.Length, Is.GreaterThanOrEqualTo (3), "VertexBuffers Count");
+ Assert.AreEqual (30, obj.VertexCount, "VertexCount");
+ Assert.AreEqual (31, obj.VertexDescriptor.Attributes.Count, "VertexDescriptor Attributes Count");
+ Assert.AreEqual (31, obj.VertexDescriptor.Layouts.Count, "VertexDescriptor Layouts Count");
+ }
+ }
+
+ [Test]
+ public void CreateIcosahedronTest ()
+ {
+ TestRuntime.AssertXcodeVersion (8, 0);
+
+ Vector3 V3 = new Vector3 (1, 2, 3);
+
+ using (var obj = MDLMesh.CreateIcosahedron (V3, true, MDLGeometryType.Triangles, null)) {
+ Assert.IsNotNull (obj, "obj");
+ Assert.AreEqual (1, obj.Submeshes.Count, "Submeshes Count");
+ Assert.That (obj.VertexBuffers.Length, Is.GreaterThanOrEqualTo (1), "VertexBuffers Count");
+ Assert.AreEqual (12, obj.VertexCount, "VertexCount");
+ Assert.AreEqual (31, obj.VertexDescriptor.Attributes.Count, "VertexDescriptor Attributes Count");
+ Assert.AreEqual (31, obj.VertexDescriptor.Layouts.Count, "VertexDescriptor Layouts Count");
+ }
+ }
+
// FIXME: figure out valid input arguments for GenerateAmbientOcclusionTexture
// [Test]
// public void GenerateAmbientOcclusionTextureTest ()
diff --git a/tests/monotouch-test/ModelIO/MDLObject.cs b/tests/monotouch-test/ModelIO/MDLObject.cs
index 108cec6af0f1..7ff6f611ebf9 100644
--- a/tests/monotouch-test/ModelIO/MDLObject.cs
+++ b/tests/monotouch-test/ModelIO/MDLObject.cs
@@ -1,5 +1,5 @@
//
-// MDLLight Unit Tests
+// MDLObject Unit Tests
//
// Authors:
// Rolf Bjarne Kvinge
@@ -69,6 +69,16 @@ public void GetBoundingBox ()
var bb = obj.GetBoundingBox (0);
}
}
+
+ [Test]
+ public void ProtocolTest ()
+ {
+ using (var obj = new MDLObject ()) {
+ var p = new Protocol (typeof (IMDLComponent));
+ obj.SetComponent (new MDLTransform (), p);
+ Assert.NotNull (obj.IsComponentConforming (p));
+ }
+ }
}
}
diff --git a/tests/monotouch-test/OpenGLES/EAGLContext.cs b/tests/monotouch-test/OpenGLES/EAGLContext.cs
new file mode 100644
index 000000000000..12763dcb6a91
--- /dev/null
+++ b/tests/monotouch-test/OpenGLES/EAGLContext.cs
@@ -0,0 +1,47 @@
+//
+// EAGLContext Unit Tests
+//
+// Authors:
+// Vincent Dondain
+//
+// Copyright 2017 Microsoft
+//
+
+#if !__WATCHOS__
+
+using System;
+#if XAMCORE_2_0
+using Foundation;
+using OpenGLES;
+#else
+using MonoTouch.Foundation;
+using MonoTouch.OpenGLES;
+#endif
+using OpenTK.Graphics.ES20;
+using NUnit.Framework;
+
+namespace MonoTouchFixtures.OpenGLES
+{
+
+ [TestFixture]
+ // we want the test to be available if we use the linker
+ [Preserve (AllMembers = true)]
+ public class EAGLContextTest
+ {
+ [Test]
+ public void PresentRenderBufferTest ()
+ {
+ TestRuntime.AssertXcodeVersion (8, 0);
+
+ var obj = new EAGLContext (EAGLRenderingAPI.OpenGLES2);
+
+ Asserts.AreEqual (true, obj.PresentRenderBuffer ((int)RenderbufferTarget.Renderbuffer, 0), "PresentRenderBuffer");
+ if (TestRuntime.CheckXcodeVersion (8, 3)) {
+ Asserts.AreEqual (true, obj.PresentRenderBuffer ((int)RenderbufferTarget.Renderbuffer, 0, EAGLContext.PresentationMode.AtTime), "PresentRenderBufferAtTime");
+ Asserts.AreEqual (true, obj.PresentRenderBuffer ((int)RenderbufferTarget.Renderbuffer, 0, EAGLContext.PresentationMode.AfterMinimumDuration), "PresentRenderBufferAfterMinimumDuration");
+ }
+ }
+ }
+}
+
+#endif // !__WATCHOS__
diff --git a/tests/monotouch-test/Security/CertificateTest.cs b/tests/monotouch-test/Security/CertificateTest.cs
index 9c9db62ff54f..d7ee5dd8eba4 100644
--- a/tests/monotouch-test/Security/CertificateTest.cs
+++ b/tests/monotouch-test/Security/CertificateTest.cs
@@ -514,6 +514,14 @@ void CheckMailGoogleCom (SecCertificate cert, int expectedRetainCount)
Assert.That (CFGetRetainCount (cert.Handle), Is.EqualTo (expectedRetainCount), "RetainCount");
Assert.That (cert.SubjectSummary, Is.EqualTo ("mail.google.com"), "SubjectSummary");
Assert.That ((nuint) (uint) mail_google_com.Length, Is.EqualTo (cert.DerData.Length), "DerData");
+ if (TestRuntime.CheckXcodeVersion (8, 3)) {
+ Assert.That (cert.GetCommonName (), Is.EqualTo ("mail.google.com"), "GetCommonName");
+ Assert.That (cert.GetSerialNumber ().Description, Is.EqualTo ("<2b9f7ee5 ca25a625 14204782 753a9bb9>"), "GetSerialNumber");
+ Assert.Null (cert.GetEmailAddresses (), "GetEmailAddresses");
+ Assert.NotNull (cert.GetNormalizedIssuerSequence (), "GetNormalizedIssuerSequence");
+ Assert.NotNull (cert.GetNormalizedSubjectSequence (), "GetNormalizedSubjectSequence");
+ Assert.NotNull (cert.GetPublicKey (), "GetPublicKey");
+ }
}
[Test]
diff --git a/tests/monotouch-test/Security/KeyTest.cs b/tests/monotouch-test/Security/KeyTest.cs
index 8d26b365b80b..fce764c19dfe 100644
--- a/tests/monotouch-test/Security/KeyTest.cs
+++ b/tests/monotouch-test/Security/KeyTest.cs
@@ -243,13 +243,9 @@ public void SignVerifyRSA512PKCS1SHA1 ()
Assert.That (public_key.RawVerify (SecPadding.PKCS1SHA1, hash, sign), Is.EqualTo (SecStatusCode.Success), "RawVerify");
var empty = new byte [0];
- if (TestRuntime.CheckXcodeVersion (8, 0)) {
- Assert.That (private_key.RawSign (SecPadding.PKCS1SHA1, empty, out sign), Is.EqualTo (SecStatusCode.Success), "RawSign-empty");
- Assert.That (public_key.RawVerify (SecPadding.PKCS1SHA1, empty, empty), Is.EqualTo (SecStatusCode.Success), "RawVerify-empty");
- } else {
- Assert.That (private_key.RawSign (SecPadding.PKCS1SHA1, empty, out sign), Is.EqualTo (SecStatusCode.Param), "RawSign-empty");
- Assert.That (public_key.RawVerify (SecPadding.PKCS1SHA1, empty, empty), Is.EqualTo (SecStatusCode.Param), "RawVerify-empty");
- }
+ Assert.That (private_key.RawSign (SecPadding.PKCS1, empty, out sign), Is.EqualTo (SecStatusCode.Success), "RawSign-empty");
+ // results vary per iOS version - but that's out of our control and we only care that it does not crash
+ public_key.RawVerify (SecPadding.PKCS1SHA1, empty, empty);
private_key.Dispose ();
public_key.Dispose ();
@@ -276,12 +272,8 @@ public void SignVerifyECSHA1 ()
var empty = new byte [0];
// there does not seem to be a length-check on PKCS1, likely because not knowning the hash algorithm makes it harder
Assert.That (private_key.RawSign (SecPadding.PKCS1, empty, out sign), Is.EqualTo (SecStatusCode.Success), "RawSign-empty");
- if (TestRuntime.CheckXcodeVersion (8, 0)) {
- Assert.That (public_key.RawVerify (SecPadding.PKCS1, empty, empty), Is.EqualTo (SecStatusCode.Success), "RawVerify-empty");
- } else {
- // but that does not work at verification time
- Assert.That (public_key.RawVerify (SecPadding.PKCS1, empty, empty), Is.EqualTo ((SecStatusCode)(-9809)), "RawVerify-empty");
- }
+ // results vary per iOS version - but that's out of our control and we only care that it does not crash
+ public_key.RawVerify (SecPadding.PKCS1, empty, empty);
private_key.Dispose ();
public_key.Dispose ();
diff --git a/tests/monotouch-test/VideoToolbox/VTCompressionSessionTests.cs b/tests/monotouch-test/VideoToolbox/VTCompressionSessionTests.cs
index 0f0d3ccedd35..b85f792358e5 100644
--- a/tests/monotouch-test/VideoToolbox/VTCompressionSessionTests.cs
+++ b/tests/monotouch-test/VideoToolbox/VTCompressionSessionTests.cs
@@ -8,7 +8,7 @@
// Copyright 2015 Xamarin Inc. All rights reserved.
//
-#if !__TVOS__ && !__WATCHOS__
+#if !__WATCHOS__
using System;
@@ -149,5 +149,5 @@ VTCompressionSession CreateSession ()
}
}
-#endif // !__TVOS__ && !__WATCHOS__
+#endif // !__WATCHOS__
diff --git a/tests/monotouch-test/VideoToolbox/VTDecompressionSessionTests.cs b/tests/monotouch-test/VideoToolbox/VTDecompressionSessionTests.cs
index 543ea1a1d0a6..caf55c511456 100644
--- a/tests/monotouch-test/VideoToolbox/VTDecompressionSessionTests.cs
+++ b/tests/monotouch-test/VideoToolbox/VTDecompressionSessionTests.cs
@@ -8,7 +8,7 @@
// Copyright 2015 Xamarin Inc. All rights reserved.
//
-#if !__TVOS__ && !__WATCHOS__
+#if !__WATCHOS__
using System;
@@ -111,4 +111,4 @@ VTDecompressionSession CreateSession (AVAsset asset)
}
}
-#endif // !__TVOS__ && !__WATCHOS__
+#endif // !__WATCHOS__
diff --git a/tests/monotouch-test/VideoToolbox/VTFrameSiloTests.cs b/tests/monotouch-test/VideoToolbox/VTFrameSiloTests.cs
index c9e4256c4ca9..781d0d68e008 100644
--- a/tests/monotouch-test/VideoToolbox/VTFrameSiloTests.cs
+++ b/tests/monotouch-test/VideoToolbox/VTFrameSiloTests.cs
@@ -8,7 +8,7 @@
// Copyright 2015 Xamarin Inc. All rights reserved.
//
-#if !__TVOS__ && !__WATCHOS__
+#if !__WATCHOS__
using System;
@@ -84,4 +84,4 @@ public void ForEachTest ()
}
}
-#endif // !__TVOS__ && !__WATCHOS__
+#endif // !__WATCHOS__
diff --git a/tests/monotouch-test/VideoToolbox/VTMultiPassStorageTests.cs b/tests/monotouch-test/VideoToolbox/VTMultiPassStorageTests.cs
index 00211e4ee21d..f7bc23770957 100644
--- a/tests/monotouch-test/VideoToolbox/VTMultiPassStorageTests.cs
+++ b/tests/monotouch-test/VideoToolbox/VTMultiPassStorageTests.cs
@@ -8,7 +8,7 @@
// Copyright 2015 Xamarin Inc. All rights reserved.
//
-#if !__TVOS__ && !__WATCHOS__
+#if !__WATCHOS__
using System;
@@ -59,4 +59,4 @@ public void MultiPassStorageCloseTest ()
}
}
-#endif // !__TVOS__ && !__WATCHOS__
+#endif // !__WATCHOS__
diff --git a/tests/monotouch-test/VideoToolbox/VTUtilitiesTests.cs b/tests/monotouch-test/VideoToolbox/VTUtilitiesTests.cs
index 59da6c1c8c47..be29d3c84429 100644
--- a/tests/monotouch-test/VideoToolbox/VTUtilitiesTests.cs
+++ b/tests/monotouch-test/VideoToolbox/VTUtilitiesTests.cs
@@ -8,7 +8,7 @@
// Copyright 2015 Xamarin Inc. All rights reserved.
//
-#if !__TVOS__ && !__WATCHOS__
+#if !__WATCHOS__
using System;
using System.Drawing;
@@ -76,14 +76,21 @@ public void ToCGImageTest ()
var pxbuffer = new CVPixelBuffer (originalCGImage.Width, originalCGImage.Height, CVPixelFormatType.CV32ARGB,
new CVPixelBufferAttributes { CGImageCompatibility = true, CGBitmapContextCompatibility = true });
+#if !__TVOS__
pxbuffer.Lock (CVOptionFlags.None);
-
+#else
+ pxbuffer.Lock (CVPixelBufferLock.None);
+#endif
using (var colorSpace = CGColorSpace.CreateDeviceRGB ())
using (var ctx = new CGBitmapContext (pxbuffer.BaseAddress, originalCGImage.Width, originalCGImage.Height, 8,
4 * originalCGImage.Width, colorSpace, CGBitmapFlags.NoneSkipLast)) {
ctx.RotateCTM (0);
ctx.DrawImage (new RectangleF (0, 0, originalCGImage.Width, originalCGImage.Height), originalCGImage);
+#if !__TVOS__
pxbuffer.Unlock (CVOptionFlags.None);
+#else
+ pxbuffer.Unlock (CVPixelBufferLock.None);
+#endif
}
Assert.NotNull (pxbuffer, "VTUtilitiesTests.ToCGImageTest pxbuffer should not be null");
@@ -102,4 +109,4 @@ public void ToCGImageTest ()
}
}
-#endif // !__TVOS__ && !__WATCHOS__
+#endif // !__WATCHOS__
diff --git a/tests/monotouch-test/VideoToolbox/VTVideoEncoderListTests.cs b/tests/monotouch-test/VideoToolbox/VTVideoEncoderListTests.cs
index d08cddcc67b8..8ca20e278b15 100644
--- a/tests/monotouch-test/VideoToolbox/VTVideoEncoderListTests.cs
+++ b/tests/monotouch-test/VideoToolbox/VTVideoEncoderListTests.cs
@@ -8,7 +8,7 @@
// Copyright 2015 Xamarin Inc. All rights reserved.
//
-#if !__TVOS__ && !__WATCHOS__
+#if !__WATCHOS__
using System;
#if XAMCORE_2_0
@@ -39,4 +39,4 @@ public void VideoEncoderListTest ()
}
}
-#endif // !__TVOS__ && !__WATCHOS__
+#endif // !__WATCHOS__
diff --git a/tests/monotouch-test/monotouch-test.csproj b/tests/monotouch-test/monotouch-test.csproj
index f5b07e1c15d5..025b83757bb7 100644
--- a/tests/monotouch-test/monotouch-test.csproj
+++ b/tests/monotouch-test/monotouch-test.csproj
@@ -147,6 +147,7 @@
+
@@ -647,6 +648,8 @@
+
+
@@ -710,6 +713,7 @@
+
@@ -773,4 +777,4 @@
-
\ No newline at end of file
+
diff --git a/tests/mtouch/MTouch.cs b/tests/mtouch/MTouch.cs
index cf39e65b9577..df14cd4df684 100644
--- a/tests/mtouch/MTouch.cs
+++ b/tests/mtouch/MTouch.cs
@@ -416,7 +416,7 @@ public void MT0026 ()
mtouch.AssertError (26, "Could not parse the command line argument '--llvm-opt=-O2': Both assembly and optimization must be specified (assembly=optimization)");
}
}
-
+
[Test]
public void MT0051 ()
{
diff --git a/tests/templates/WatchContainer/Container.csproj b/tests/templates/WatchContainer/Container.csproj
index 912f11337e9b..5375135e0ab6 100644
--- a/tests/templates/WatchContainer/Container.csproj
+++ b/tests/templates/WatchContainer/Container.csproj
@@ -22,6 +22,7 @@
4
i386
None
+ true
true
iPhone Developer
true
@@ -63,6 +64,7 @@
iPhone Developer
true
true
+ true
true
diff --git a/tests/xtro-sharpie/.gitignore b/tests/xtro-sharpie/.gitignore
index 608f8581dc6a..e7a1b19eafdd 100644
--- a/tests/xtro-sharpie/.gitignore
+++ b/tests/xtro-sharpie/.gitignore
@@ -1,3 +1,4 @@
*.results
*.pch*
*.unclassified
+*.g.cs
diff --git a/tests/xtro-sharpie/Helpers.cs b/tests/xtro-sharpie/Helpers.cs
index 3a6906c00361..aa5a89eafad8 100644
--- a/tests/xtro-sharpie/Helpers.cs
+++ b/tests/xtro-sharpie/Helpers.cs
@@ -40,8 +40,10 @@ public static class Helpers {
{ "NEVPNStatus", "NEVpnStatus" },
{ "NSAttributedStringEnumerationOptions", "NSAttributedStringEnumeration" },
{ "NSHTTPCookieAcceptPolicy", "NSHttpCookieAcceptPolicy" },
+ { "NSISO8601DateFormatOptions", "NSIso8601DateFormatOptions" },
{ "NSJSONReadingOptions", "NSJsonReadingOptions" },
{ "NSJSONWritingOptions", "NSJsonWritingOptions" },
+ { "NSUbiquitousKeyValueStoreChangeReason", "NSUbiquitousKeyValueStore" },
{ "NSURLBookmarkCreationOptions", "NSUrlBookmarkCreationOptions" },
{ "NSURLBookmarkResolutionOptions", "NSUrlBookmarkResolutionOptions" },
{ "NSURLCacheStoragePolicy", "NSUrlCacheStoragePolicy" },
@@ -51,10 +53,12 @@ public static class Helpers {
{ "NSURLRequestNetworkServiceType", "NSUrlRequestNetworkServiceType" },
{ "NSURLSessionAuthChallengeDisposition", "NSUrlSessionAuthChallengeDisposition" },
{ "NSURLSessionResponseDisposition", "NSUrlSessionResponseDisposition" },
+ { "NSURLSessionTaskMetricsResourceFetchType", "NSUrlSessionTaskMetricsResourceFetchType" },
{ "NSURLSessionTaskState", "NSUrlSessionTaskState" },
{ "NWTCPConnectionState", "NWTcpConnectionState" },
{ "NWUDPSessionState", "NWUdpSessionState" },
{ "RPRecordingErrorCode", "RPRecordingError" },
+ { "SecTrustResultType", "SecTrustResult" },
{ "SKErrorCode", "SKError" },
{ "SSReadingListErrorCode", "SSReadingListError" },
{ "SCNRenderingAPI", "SCNRenderingApi" },
diff --git a/tests/xtro-sharpie/Makefile b/tests/xtro-sharpie/Makefile
index 4119ad43ec49..6c1658333af1 100644
--- a/tests/xtro-sharpie/Makefile
+++ b/tests/xtro-sharpie/Makefile
@@ -17,8 +17,8 @@ bin/Debug/xtro-sharpie.exe ./bin/Debug/xtro-plugin.dll build:
xbuild
-XIOS ?= /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/64bits/Xamarin.iOS.dll
-XIOS_GL ?= /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/OpenTK-1.0.dll
+XIOS ?= $(TOP)/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/lib/64bits/Xamarin.iOS.dll
+XIOS_GL ?= $(TOP)/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/OpenTK-1.0.dll
XIOS_ARCH = arm64
XIOS_PCH = iphoneos$(IOS_SDK_VERSION)-$(XIOS_ARCH).pch
@@ -32,7 +32,7 @@ $(XIOS_PCH):
sharpie sdk-db -s iphoneos$(IOS_SDK_VERSION) -a $(XIOS_ARCH)
-XWATCHOS ?= /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/32bits/Xamarin.WatchOS.dll
+XWATCHOS ?= $(TOP)/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/lib/32bits/Xamarin.WatchOS.dll
XWATCHOS_ARCH = armv7
XWATCHOS_PCH = watchos$(WATCH_SDK_VERSION)-$(XWATCHOS_ARCH).pch
@@ -46,8 +46,8 @@ $(XWATCHOS_PCH):
sharpie sdk-db -s watchos$(WATCH_SDK_VERSION) -a $(XWATCHOS_ARCH)
-XTVOS ?= /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.TVOS/Xamarin.TVOS.dll
-XTVOS_GL ?= /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.TVOS/OpenTK-1.0.dll
+XTVOS ?= $(TOP)/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/lib/mono/Xamarin.TVOS/Xamarin.TVOS.dll
+XTVOS_GL ?= $(TOP)/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/lib/mono/Xamarin.TVOS/OpenTK-1.0.dll
XTVOS_ARCH = arm64
XTVOS_PCH = appletvos$(TVOS_SDK_VERSION)-$(XTVOS_ARCH).pch
@@ -61,7 +61,7 @@ $(XTVOS_PCH):
sharpie sdk-db -s appletvos$(TVOS_SDK_VERSION) -a $(XTVOS_ARCH)
-XMAC ?= /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/$(XMAC_ARCH)/mobile/Xamarin.Mac.dll
+XMAC ?= $(TOP)/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/git/lib/$(XMAC_ARCH)/mobile/Xamarin.Mac.dll
XMAC_ARCH = x86_64
XMAC_PCH = macosx$(OSX_SDK_VERSION)-$(XMAC_ARCH).pch
@@ -101,3 +101,26 @@ classify: classify-ios classify-osx classify-watchos classify-tvos
@sort common.ignore common.pending ios.skip.tmp osx.skip.tmp > common.skip.tmp
@comm -23 common.unclassified.tmp common.skip.tmp > common.unclassified
@rm *.tmp *.results
+
+
+ios-$(IOS_SDK_VERSION).g.cs: $(XIOS_PCH)
+
+gen-ios: ios-$(IOS_SDK_VERSION).g.cs
+ sharpie query -bind $(XIOS_PCH) > ios-$(IOS_SDK_VERSION).g.cs
+
+tvos-$(TVOS_SDK_VERSION).g.cs: $(XTVOS_PCH)
+
+gen-tvos: tvos-$(TVOS_SDK_VERSION).g.cs
+ sharpie query -bind $(XTVOS_PCH) > tvos-$(TVOS_SDK_VERSION).g.cs
+
+watchos-$(WATCH_SDK_VERSION).g.cs: $(XWATCHOS_PCH)
+
+gen-watchos: watchos-$(WATCH_SDK_VERSION).g.cs
+ sharpie query -bind $(XWATCHOS_PCH) > watchos-$(WATCH_SDK_VERSION).g.cs
+
+macos-$(OSX_SDK_VERSION).g.cs: $(XMAC_PCH)
+
+gen-macos: macos-$(OSX_SDK_VERSION).g.cs
+ sharpie query -bind $(XMAC_PCH) > macos-$(OSX_SDK_VERSION).g.cs
+
+gen-all: gen-ios gen-tvos gen-watchos gen-macos
diff --git a/tests/xtro-sharpie/README.md b/tests/xtro-sharpie/README.md
index 9224af279802..2cc825b7e24d 100644
--- a/tests/xtro-sharpie/README.md
+++ b/tests/xtro-sharpie/README.md
@@ -32,13 +32,17 @@ E.g. rules might be too noisy and require refinement, either in code or in exter
### Ideas
-Anything we do not check but for which data is available.
+Anything we do not check but for which data is available, e.g.
+
+* NullAllowed;
+* Enum member values;
+* Generic updates to existing API (need to find a way to avoid braking changes first)
## Notes
* To develop you need a checkout of ObjectiveSharpie
-* clang is only built for 64bits so you need a 64bits mono to execute the tool. That might change to reuse Sharpie own runtime once it's installed on every bots;
+* `clang` is only built for 64bits so you need a 64bits mono to execute the tool. The latest mono versions (required to build `xamarin-macios` supply a `mono64` binary);
-* To be able to use XS to build/debug you need to set your runtime to a mono that was compiled with 64bits support. The currenylu shipping Mono version (4.0) does not ship with a 64bits runtime for OSX;
+* You can use the `gen-[platform]` or `gen-all` target of the `Makefile` to generate C# code for all the API from the headers. You can then copy/paste from the (large) files to create the missing bindings;
diff --git a/tests/xtro-sharpie/common.ignore b/tests/xtro-sharpie/common.ignore
index 64c83b5d6cbc..1ef081070ad0 100644
--- a/tests/xtro-sharpie/common.ignore
+++ b/tests/xtro-sharpie/common.ignore
@@ -23,6 +23,12 @@
## deprecated in iOS8
!missing-protocol-member! AVAudioRecorderDelegate::audioRecorderEndInterruption:withOptions: not found
+## Used only once in a deprecated API, native use `NSInteger` not a real enum - that's why there's a `[Native]`
+!unknown-native-enum! AVAudioSessionFlags bound
+
+## native use `NSUInteger` not a real enum - that's why there's a `[Native]`
+!unknown-native-enum! AVAudioSessionInterruptionFlags bound
+
# CoreGraphics
@@ -43,6 +49,12 @@
!missing-selector! NSNumber::initWithLong: not bound
!missing-selector! NSNumber::initWithUnsignedLong: not bound
+## should not have been [Native] it's 32bits only values -> XAMCORE_4_0
+!unknown-native-enum! NSBundleExecutableArchitecture bound
+
+## enum was [re]named to NSCalendarOptions - excluding from XAMCORE_4_0
+!unknown-native-enum! NSDateComponentsWrappingBehavior bound
+
# GameKit
@@ -89,6 +101,51 @@
!incorrect-protocol-member! MTLResource::heap is REQUIRED and should be abstract
!incorrect-protocol-member! MTLResource::isAliasable is REQUIRED and should be abstract
!incorrect-protocol-member! MTLResource::makeAliasable is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLCommandBuffer::presentDrawable:afterMinimumDuration: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLDrawable::addPresentedHandler: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLDrawable::drawableID is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLDrawable::presentAfterMinimumDuration: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLDrawable::presentedTime is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLBuffer::addDebugMarker:range: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLBuffer::removeAllDebugMarkers is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLCommandBuffer::GPUEndTime is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLCommandBuffer::GPUStartTime is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLCommandBuffer::kernelEndTime is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLCommandBuffer::kernelStartTime is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLComputeCommandEncoder::dispatchThreadgroupsWithIndirectBuffer:indirectBufferOffset:threadsPerThreadgroup: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLComputeCommandEncoder::setStageInRegion: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLDevice::maxThreadsPerThreadgroup is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLDevice::newDefaultLibraryWithBundle:error: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLFunction::functionConstantsDictionary is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLFunction::label is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLFunction::patchControlPointCount is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLFunction::patchType is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLFunction::setLabel: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLFunction::stageInputAttributes is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLLibrary::newFunctionWithName:constantValues:completionHandler: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLLibrary::newFunctionWithName:constantValues:error: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLParallelRenderCommandEncoder::setColorStoreAction:atIndex: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLParallelRenderCommandEncoder::setDepthStoreAction: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLParallelRenderCommandEncoder::setStencilStoreAction: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLRenderCommandEncoder::drawIndexedPatches:patchStart:patchCount:patchIndexBuffer:patchIndexBufferOffset:controlPointIndexBuffer:controlPointIndexBufferOffset:instanceCount:baseInstance: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLRenderCommandEncoder::drawIndexedPrimitives:indexCount:indexType:indexBuffer:indexBufferOffset:instanceCount:baseVertex:baseInstance: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLRenderCommandEncoder::drawIndexedPrimitives:indexType:indexBuffer:indexBufferOffset:indirectBuffer:indirectBufferOffset: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLRenderCommandEncoder::drawPatches:patchStart:patchCount:patchIndexBuffer:patchIndexBufferOffset:instanceCount:baseInstance: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLRenderCommandEncoder::drawPrimitives:indirectBuffer:indirectBufferOffset: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLRenderCommandEncoder::drawPrimitives:vertexStart:vertexCount:instanceCount:baseInstance: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLRenderCommandEncoder::setColorStoreAction:atIndex: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLRenderCommandEncoder::setDepthStoreAction: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLRenderCommandEncoder::setStencilStoreAction: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLRenderCommandEncoder::setTessellationFactorBuffer:offset:instanceStride: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLRenderCommandEncoder::setTessellationFactorScale: is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLResource::storageMode is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLTexture::buffer is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLTexture::bufferBytesPerRow is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLTexture::bufferOffset is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLTexture::parentRelativeLevel is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLTexture::parentRelativeSlice is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLTexture::parentTexture is REQUIRED and should be abstract
+!incorrect-protocol-member! MTLTexture::usage is REQUIRED and should be abstract
# ModelIO
@@ -96,6 +153,27 @@
## we only export the overload that expose an NSError
!missing-selector! MDLAsset::exportAssetToURL: not bound
+## those are just doing the same as the setComponent:forProtocol: and componentConformingToProtocol:
+## objectForKeyedSubscript:'s description is: "Allows shorthand [key] syntax for componentConformingToProtocol:"
+!missing-selector! MDLAsset::objectForKeyedSubscript: not bound
+!missing-selector! MDLAsset::setObject:forKeyedSubscript: not bound
+!missing-selector! MDLObject::objectForKeyedSubscript: not bound
+!missing-selector! MDLObject::setObject:forKeyedSubscript: not bound
+
+## old @optional methods that became @required (abstract) in existing types (breaking changes)
+!incorrect-protocol-member! MDLMeshBuffer::allocator is REQUIRED and should be abstract
+!incorrect-protocol-member! MDLMeshBuffer::length is REQUIRED and should be abstract
+!incorrect-protocol-member! MDLMeshBuffer::type is REQUIRED and should be abstract
+!incorrect-protocol-member! MDLMeshBuffer::zone is REQUIRED and should be abstract
+!incorrect-protocol-member! MDLMeshBufferZone::allocator is REQUIRED and should be abstract
+!incorrect-protocol-member! MDLMeshBufferZone::capacity is REQUIRED and should be abstract
+
+
+# Security
+
+## part of mscorlib.dll -> mcs/class/corlib/CommonCrypto/CommonCrypto.cs to implement RNGCryptoServiceProvider
+!missing-pinvoke! SecRandomCopyBytes is not bound
+
# SpriteKit
diff --git a/tests/xtro-sharpie/common.pending b/tests/xtro-sharpie/common.pending
index 41a5a5fb0f17..ca4145edfd70 100644
--- a/tests/xtro-sharpie/common.pending
+++ b/tests/xtro-sharpie/common.pending
@@ -1,3 +1,9 @@
+# AVFoundation
+
+## to be re-enabled when merging to master - https://bugzilla.xamarin.com/show_bug.cgi?id=52730
+!missing-field! AVAudioSessionInterruptionWasSuspendedKey not bound
+
+
# CoreData
## https://bugzilla.xamarin.com/show_bug.cgi?id=34968
@@ -57,25 +63,13 @@
# SpriteKit
-## https://bugzilla.xamarin.com/show_bug.cgi?id=34946
-!missing-selector! +SKNode::nodeWithFileNamed: not bound
-!missing-selector! SKNode::isEqualToNode: not bound
-!missing-selector! +SKUniform::uniformWithName: not bound
-!missing-selector! +SKUniform::uniformWithName:texture: not bound
-!missing-selector! +SKUniform::uniformWithName:float: not bound
+## Deprecated in iOS 10
!missing-selector! +SKUniform::uniformWithName:floatVector2: not bound
!missing-selector! +SKUniform::uniformWithName:floatVector3: not bound
!missing-selector! +SKUniform::uniformWithName:floatVector4: not bound
!missing-selector! +SKUniform::uniformWithName:floatMatrix2: not bound
!missing-selector! +SKUniform::uniformWithName:floatMatrix3: not bound
!missing-selector! +SKUniform::uniformWithName:floatMatrix4: not bound
-!missing-selector! +SKActions::falloffTo:duration: not bound
-!missing-selector! +SKVideoNode::videoNodeWithFileNamed: not bound
-!missing-selector! +SKVideoNode::videoNodeWithURL: not bound
-
-## https://bugzilla.xamarin.com/show_bug.cgi?id=37727
-!missing-selector! SKVideoNode::initWithFileNamed: not bound
-!missing-selector! SKVideoNode::initWithURL: not bound
# UIKit
@@ -106,20 +100,95 @@
# missing - pending decision for implementation
!missing-type! NSAssertionHandler not bound
+!missing-field! NSAssertionHandlerKey not bound
+!missing-selector! +NSAssertionHandler::currentHandler not bound
+!missing-selector! NSAssertionHandler::handleFailureInFunction:file:lineNumber:description: not bound
+!missing-selector! NSAssertionHandler::handleFailureInMethod:object:file:lineNumber:description: not bound
## collections - many are special
!missing-type! NSCountedSet not bound
+!missing-selector! NSCountedSet::addObject: not bound
+!missing-selector! NSCountedSet::countForObject: not bound
+!missing-selector! NSCountedSet::initWithArray: not bound
+!missing-selector! NSCountedSet::initWithCapacity: not bound
+!missing-selector! NSCountedSet::initWithSet: not bound
+!missing-selector! NSCountedSet::removeObject: not bound
+
!missing-type! NSHashTable not bound
+!missing-selector! +NSHashTable::hashTableWithOptions: not bound
+!missing-selector! NSHashTable::addObject: not bound
+!missing-selector! NSHashTable::allObjects not bound
+!missing-selector! NSHashTable::anyObject not bound
+!missing-selector! NSHashTable::containsObject: not bound
+!missing-selector! NSHashTable::count not bound
+!missing-selector! NSHashTable::initWithOptions:capacity: not bound
+!missing-selector! NSHashTable::initWithPointerFunctions:capacity: not bound
+!missing-selector! NSHashTable::intersectHashTable: not bound
+!missing-selector! NSHashTable::intersectsHashTable: not bound
+!missing-selector! NSHashTable::isEqualToHashTable: not bound
+!missing-selector! NSHashTable::isSubsetOfHashTable: not bound
+!missing-selector! NSHashTable::member: not bound
+!missing-selector! NSHashTable::minusHashTable: not bound
+!missing-selector! NSHashTable::pointerFunctions not bound
+!missing-selector! NSHashTable::removeObject: not bound
+!missing-selector! NSHashTable::setRepresentation not bound
+!missing-selector! NSHashTable::unionHashTable: not bound
+
!missing-type! NSMapTable not bound
+!missing-selector! +NSMapTable::mapTableWithKeyOptions:valueOptions: not bound
+!missing-selector! NSMapTable::count not bound
+!missing-selector! NSMapTable::initWithKeyOptions:valueOptions:capacity: not bound
+!missing-selector! NSMapTable::initWithKeyPointerFunctions:valuePointerFunctions:capacity: not bound
+!missing-selector! NSMapTable::keyPointerFunctions not bound
+!missing-selector! NSMapTable::objectForKey: not bound
+!missing-selector! NSMapTable::removeObjectForKey: not bound
+!missing-selector! NSMapTable::setObject:forKey: not bound
+!missing-selector! NSMapTable::valuePointerFunctions not bound
+
!missing-type! NSPointerArray not bound
+!missing-selector! NSPointerArray::addPointer: not bound
+!missing-selector! NSPointerArray::allObjects not bound
+!missing-selector! NSPointerArray::count not bound
+!missing-selector! NSPointerArray::initWithOptions: not bound
+!missing-selector! NSPointerArray::initWithPointerFunctions: not bound
+!missing-selector! NSPointerArray::insertPointer:atIndex: not bound
+!missing-selector! NSPointerArray::pointerAtIndex: not bound
+!missing-selector! NSPointerArray::pointerFunctions not bound
+!missing-selector! NSPointerArray::removePointerAtIndex: not bound
+!missing-selector! NSPointerArray::replacePointerAtIndex:withPointer: not bound
+!missing-selector! NSPointerArray::setCount: not bound
+
!missing-type! NSPointerFunctions not bound
+!missing-selector! NSPointerFunctions::acquireFunction not bound
+!missing-selector! NSPointerFunctions::descriptionFunction not bound
+!missing-selector! NSPointerFunctions::hashFunction not bound
+!missing-selector! NSPointerFunctions::initWithOptions: not bound
+!missing-selector! NSPointerFunctions::isEqualFunction not bound
+!missing-selector! NSPointerFunctions::relinquishFunction not bound
+!missing-selector! NSPointerFunctions::setAcquireFunction: not bound
+!missing-selector! NSPointerFunctions::setDescriptionFunction: not bound
+!missing-selector! NSPointerFunctions::setHashFunction: not bound
+!missing-selector! NSPointerFunctions::setIsEqualFunction: not bound
+!missing-selector! NSPointerFunctions::setRelinquishFunction: not bound
+!missing-selector! NSPointerFunctions::setSizeFunction: not bound
+!missing-selector! NSPointerFunctions::setUsesStrongWriteBarrier: not bound
+!missing-selector! NSPointerFunctions::setUsesWeakReadAndWriteBarriers: not bound
+!missing-selector! NSPointerFunctions::sizeFunction not bound
+!missing-selector! NSPointerFunctions::usesStrongWriteBarrier not bound
+!missing-selector! NSPointerFunctions::usesWeakReadAndWriteBarriers not bound
+
# regex
!missing-type! NSDataDetector not bound
+!missing-selector! NSDataDetector::initWithTypes:error: not bound
+
!missing-type! NSRegularExpression not bound
+!missing-selector! +NSRegularExpression::regularExpressionWithPattern:options:error: not bound
!missing-enum! NSRegularExpressionOptions not bound
!missing-type! NSDecimalNumberHandler not bound
+!missing-selector! +NSDecimalNumberHandler::decimalNumberHandlerWithRoundingMode:scale:raiseOnExactness:raiseOnOverflow:raiseOnUnderflow:raiseOnDivideByZero: not bound
+!missing-selector! NSDecimalNumberHandler::initWithRoundingMode:scale:raiseOnExactness:raiseOnOverflow:raiseOnUnderflow:raiseOnDivideByZero: not bound
!missing-protocol! NSDecimalNumberBehaviors not bound
## coredata
@@ -137,6 +206,34 @@
## string scanning, looks helpful (porting code)
!missing-type! NSScanner not bound
+!missing-selector! +NSScanner::localizedScannerWithString: not bound
+!missing-selector! +NSScanner::scannerWithString: not bound
+!missing-selector! NSScanner::caseSensitive not bound
+!missing-selector! NSScanner::charactersToBeSkipped not bound
+!missing-selector! NSScanner::initWithString: not bound
+!missing-selector! NSScanner::isAtEnd not bound
+!missing-selector! NSScanner::locale not bound
+!missing-selector! NSScanner::scanCharactersFromSet:intoString: not bound
+!missing-selector! NSScanner::scanDecimal: not bound
+!missing-selector! NSScanner::scanDouble: not bound
+!missing-selector! NSScanner::scanFloat: not bound
+!missing-selector! NSScanner::scanHexDouble: not bound
+!missing-selector! NSScanner::scanHexFloat: not bound
+!missing-selector! NSScanner::scanHexInt: not bound
+!missing-selector! NSScanner::scanHexLongLong: not bound
+!missing-selector! NSScanner::scanInt: not bound
+!missing-selector! NSScanner::scanInteger: not bound
+!missing-selector! NSScanner::scanLocation not bound
+!missing-selector! NSScanner::scanLongLong: not bound
+!missing-selector! NSScanner::scanString:intoString: not bound
+!missing-selector! NSScanner::scanUnsignedLongLong: not bound
+!missing-selector! NSScanner::scanUpToCharactersFromSet:intoString: not bound
+!missing-selector! NSScanner::scanUpToString:intoString: not bound
+!missing-selector! NSScanner::setCaseSensitive: not bound
+!missing-selector! NSScanner::setCharactersToBeSkipped: not bound
+!missing-selector! NSScanner::setLocale: not bound
+!missing-selector! NSScanner::setScanLocation: not bound
+!missing-selector! NSScanner::string not bound
## abstract
!missing-type! NSValueTransformer not bound
@@ -232,6 +329,26 @@
!missing-selector! NSXMLParser::shouldProcessNamespaces is not bound
!missing-selector! NSXMLParser::shouldReportNamespacePrefixes is not bound
!missing-selector! NSXMLParser::shouldResolveExternalEntities is not bound
+!missing-selector! NSXMLParser::allowedExternalEntityURLs not bound
+!missing-selector! NSXMLParser::columnNumber not bound
+!missing-selector! NSXMLParser::delegate not bound
+!missing-selector! NSXMLParser::externalEntityResolvingPolicy not bound
+!missing-selector! NSXMLParser::initWithContentsOfURL: not bound
+!missing-selector! NSXMLParser::initWithData: not bound
+!missing-selector! NSXMLParser::initWithStream: not bound
+!missing-selector! NSXMLParser::lineNumber not bound
+!missing-selector! NSXMLParser::parserError not bound
+!missing-selector! NSXMLParser::publicID not bound
+!missing-selector! NSXMLParser::setAllowedExternalEntityURLs: not bound
+!missing-selector! NSXMLParser::setDelegate: not bound
+!missing-selector! NSXMLParser::setExternalEntityResolvingPolicy: not bound
+!missing-selector! NSXMLParser::setShouldProcessNamespaces: not bound
+!missing-selector! NSXMLParser::setShouldReportNamespacePrefixes: not bound
+!missing-selector! NSXMLParser::setShouldResolveExternalEntities: not bound
+!missing-selector! NSXMLParser::shouldProcessNamespaces not bound
+!missing-selector! NSXMLParser::shouldReportNamespacePrefixes not bound
+!missing-selector! NSXMLParser::shouldResolveExternalEntities not bound
+!missing-selector! NSXMLParser::systemID not bound
!missing-protocol! NSXMLParserDelegate not bound
!missing-selector! NSXMLParserDelegate::parser:didEndElement:namespaceURI:qualifiedName: is not bound
!missing-selector! NSXMLParserDelegate::parser:didEndMappingPrefix: is not bound
@@ -523,3 +640,12 @@
## Fixed in XAMCORE_4_0
!incorrect-protocol-member! GKGameModelPlayer::playerId is REQUIRED and should be abstract
+
+# ModelIO
+
+# fixed in XAMCORE_4_0 - API break
+!incorrect-protocol-member! MDLObjectContainerComponent::count is REQUIRED and should be abstract
+!incorrect-protocol-member! MDLObjectContainerComponent::objectAtIndexedSubscript: is REQUIRED and should be abstract
+!incorrect-protocol-member! MDLTransformComponent::keyTimes is REQUIRED and should be abstract
+!incorrect-protocol-member! MDLTransformComponent::resetsTransform is REQUIRED and should be abstract
+!incorrect-protocol-member! MDLTransformComponent::setResetsTransform: is REQUIRED and should be abstract
\ No newline at end of file
diff --git a/tests/xtro-sharpie/ios.pending b/tests/xtro-sharpie/ios.pending
index dcb265dcbce8..80262bcb072f 100644
--- a/tests/xtro-sharpie/ios.pending
+++ b/tests/xtro-sharpie/ios.pending
@@ -262,12 +262,17 @@
!missing-selector! INRideOption::identifier not bound
!missing-selector! INRideOption::setIdentifier: not bound
-# UIKit
+## INPayBillIntentHandling && INSearchForBillsIntentHandling are new protocols added in iOS 10.3. This two protocols
+## were added to the existing Protocol INPaymentsDomainHandling so making this two required would be a breaking change
+!incorrect-protocol-member! INPayBillIntentHandling::handlePayBill:completion: is REQUIRED and should be abstract
+!incorrect-protocol-member! INSearchForBillsIntentHandling::handleSearchForBills:completion: is REQUIRED and should be abstract
+
+## Deprecated in betas so not exposing them in final API
+!missing-selector! INRequestRideIntent::initWithPickupLocation:dropOffLocation:rideOptionName:partySize:paymentMethod:pickupTime: not bound
+!missing-selector! INRequestRideIntent::pickupTime not bound
-# TODO: MUST BE FIXED by SR0 or SR1 of iOS 10 related bug https://bugzilla.xamarin.com/show_bug.cgi?id=43579
-!missing-protocol-member! UITextFieldDelegate::textFieldDidEndEditing:reason: not found
-!missing-protocol-member! UITextViewDelegate::textView:shouldInteractWithTextAttachment:inRange:interaction: not found
-!missing-protocol-member! UITextViewDelegate::textView:shouldInteractWithURL:inRange:interaction: not found
+
+# UIKit
## HACK: those members are not *required* in ObjC but we made them
## abstract to have them inlined in UITextField and UITextView
@@ -314,6 +319,9 @@
## It seems that Apple added a setter but it seems it is a mistake on the newly added property radar:27929872
!missing-selector! UIViewController::setDisablesAutomaticKeyboardDismissal: not bound
+## exception name, not clear if useful
+!missing-field! UIApplicationInvalidInterfaceOrientationException not bound
+
# WatchKit
diff --git a/tests/xtro-sharpie/tvos.ignore b/tests/xtro-sharpie/tvos.ignore
index 4692336c3ad3..fa85dfaad9ae 100644
--- a/tests/xtro-sharpie/tvos.ignore
+++ b/tests/xtro-sharpie/tvos.ignore
@@ -202,6 +202,7 @@
!missing-field! MPMediaItemPropertyUserGrouping not bound
!missing-field! MPMediaItemPropertyDateAdded not bound
!missing-field! MPMediaItemPropertyIsExplicit not bound
+!missing-field! MPMediaItemPropertyPlaybackStoreID not bound
## shown as available in iOS 9.3 in tvOS header files (from Xcode 7.3) so normally available in tvOS 9.2
## In reality it's only available in the simulator, not on AppleTV devices (all fields are null)
@@ -274,6 +275,8 @@
!missing-selector! MPMusicPlayerController::volume not bound
!missing-selector! MPMusicPlayerController::prepareToPlayWithCompletionHandler: not bound
!missing-selector! MPMusicPlayerController::setQueueWithDescriptor: not bound
+!missing-selector! MPMusicPlayerController::appendQueueDescriptor: not bound
+!missing-selector! MPMusicPlayerController::prependQueueDescriptor: not bound
## from (unmarked) MPMediaItem_MPMediaQueryAdditions but MPMediaItem is not in tvOS
!missing-selector! +MPMediaItem::persistentIDPropertyForGroupingType: not bound
@@ -291,6 +294,8 @@
!missing-field! SKCloudServiceSetupActionSubscribe not bound
!missing-field! SKCloudServiceSetupOptionsActionKey not bound
!missing-field! SKCloudServiceSetupOptionsITunesItemIdentifierKey not bound
+!missing-field! SKCloudServiceSetupOptionsAffiliateTokenKey not bound
+!missing-field! SKCloudServiceSetupOptionsCampaignTokenKey not bound
!missing-protocol! SKCloudServiceSetupViewControllerDelegate not bound
diff --git a/tests/xtro-sharpie/watchos.ignore b/tests/xtro-sharpie/watchos.ignore
index a9916a932aa7..283f04706765 100644
--- a/tests/xtro-sharpie/watchos.ignore
+++ b/tests/xtro-sharpie/watchos.ignore
@@ -5,6 +5,9 @@
## all members are marked as not available on watchOS (but not the protocol itself)
!missing-protocol! AVAudio3DMixing not bound
+## types/members marked as deprecated in watchOS 2.0 (even if the framework was not available before 3.0)
+AVAudioPlayerDelegate::audioPlayerEndInterruption:withOptions:
+
# Foundation
@@ -116,6 +119,20 @@
!missing-enum! PKPaymentButtonType not bound
+# SpriteKit
+
+## AVPlayer is not available on watchOS
+!missing-selector! +SKVideoNode::videoNodeWithAVPlayer: not bound
+!missing-selector! SKVideoNode::initWithAVPlayer: not bound
+
+## Those API are already deprecated - so we're not adding them
+## from a managed point-of-view that's invisible (same .ctor)
+!missing-selector! SKVideoNode::initWithVideoFileNamed: not bound
+!missing-selector! SKVideoNode::initWithVideoURL: not bound
+!missing-selector! +SKVideoNode::videoNodeWithVideoFileNamed: not bound
+!missing-selector! +SKVideoNode::videoNodeWithVideoURL: not bound
+
+
# UIKit
## Implemented in managed code
diff --git a/tests/xtro-sharpie/watchos.pending b/tests/xtro-sharpie/watchos.pending
index ca137c961f53..419e12061700 100644
--- a/tests/xtro-sharpie/watchos.pending
+++ b/tests/xtro-sharpie/watchos.pending
@@ -90,6 +90,28 @@
## somewhere else.
!missing-selector! HMCameraStream::setAudioStreamSetting: not bound
+# Intents
+
+## Deprecated so not exposing it into Xamarin.Watch.dll
+!missing-selector! INRequestRideIntent::initWithPickupLocation:dropOffLocation:rideOptionName:partySize:paymentMethod: not bound
+!missing-selector! INRideDriver::initWithHandle:displayName:image:rating:phoneNumber: not bound
+!missing-selector! INRideDriver::initWithHandle:nameComponents:image:rating:phoneNumber: not bound
+!missing-selector! INRideDriver::initWithPersonHandle:nameComponents:displayName:image:rating:phoneNumber: not bound
+!missing-selector! INRideOption::identifier not bound
+!missing-selector! INRideOption::setIdentifier: not bound
+!missing-selector! INRequestRideIntent::initWithPickupLocation:dropOffLocation:rideOptionName:partySize:paymentMethod:pickupTime: not bound
+!missing-selector! INRequestRideIntent::pickupTime not bound
+
+## False positive the class INBookRestaurantReservationIntentResponse is not available on watchOS
+!missing-enum! INBookRestaurantReservationIntentCode not bound
+
+## INPayBillIntentHandling && INSearchForBillsIntentHandling are new protocols added in iOS 10.3. This two protocols
+## were added to the existing Protocol INPaymentsDomainHandling so making this two required would be a breaking change
+!incorrect-protocol-member! INPayBillIntentHandling::handlePayBill:completion: is REQUIRED and should be abstract
+!incorrect-protocol-member! INSearchForBillsIntentHandling::handleSearchForBills:completion: is REQUIRED and should be abstract
+
+## Waiting on a radar https://trello.com/c/h8xBlKTt
+!missing-selector! +INPreferences::requestSiriAuthorization: not bound
#PassKit
diff --git a/tools/common/Frameworks.cs b/tools/common/Frameworks.cs
index 094b5692c709..d99192382e47 100644
--- a/tools/common/Frameworks.cs
+++ b/tools/common/Frameworks.cs
@@ -17,30 +17,35 @@ public class Frameworks : Dictionary
{
public void Add (string @namespace, int major_version)
{
- Add (@namespace, @namespace, major_version, 0, 0);
+ Add (@namespace, @namespace, new Version (major_version, 0));
}
public void Add (string @namespace, string framework, int major_version)
{
- Add (@namespace, framework, major_version, 0, 0);
+ Add (@namespace, framework, new Version (major_version, 0));
}
public void Add (string @namespace, int major_version, int minor_version)
{
- Add (@namespace, @namespace, major_version, minor_version, 0);
+ Add (@namespace, @namespace, new Version (major_version, minor_version));
}
public void Add (string @namespace, string framework, int major_version, int minor_version)
{
- Add(@namespace, framework, major_version, minor_version, 0);
+ Add (@namespace, framework, new Version (major_version, minor_version));
}
public void Add (string @namespace, string framework, int major_version, int minor_version, int build_version)
+ {
+ Add (@namespace, framework, new Version (major_version, minor_version, build_version));
+ }
+
+ public void Add (string @namespace, string framework, Version version)
{
var fr = new Framework () {
Namespace = Driver.IsUnified ? @namespace : XamCore.Registrar.Registrar.CompatNamespace + "." + @namespace,
Name = framework,
- Version = new Version (major_version, minor_version, build_version)
+ Version = version,
};
base.Add (fr.Namespace, fr);
}
@@ -274,6 +279,8 @@ public static Frameworks WatchFrameworks {
{ "SceneKit", "SceneKit", 3 },
{ "SpriteKit", "SpriteKit", 3 },
{ "UserNotifications", "UserNotifications", 3 },
+
+ { "Intents", "Intents", 3,2 },
};
}
return watch_frameworks;
@@ -337,6 +344,7 @@ public static Frameworks TVOSFrameworks {
{ "ReplayKit", "ReplayKit", 10 },
{ "UserNotifications", "UserNotifications", 10 },
{ "VideoSubscriberAccount", "VideoSubscriberAccount", 10 },
+ { "VideoToolbox", "VideoToolbox", 10,2 },
};
}
return tvos_frameworks;
diff --git a/tools/mmp/driver.cs b/tools/mmp/driver.cs
index 2a7527bf1881..6a474f9d73ad 100644
--- a/tools/mmp/driver.cs
+++ b/tools/mmp/driver.cs
@@ -589,6 +589,8 @@ static void ValidateXcode ()
static Version MutateSDKVersionToPointRelease (Version rv)
{
if (rv.Major == 10 && (rv.Revision == 0 || rv.Revision == -1)) {
+ if (rv.Minor == 12 && XcodeVersion >= new Version (8, 3))
+ return new Version (rv.Major, rv.Minor, 4);
if (rv.Minor == 12 && XcodeVersion >= new Version (8, 2))
return new Version (rv.Major, rv.Minor, 2);
if (rv.Minor == 12 && XcodeVersion >= new Version (8, 1))
@@ -1094,6 +1096,9 @@ static string GenerateMain ()
if (aotOptions != null && aotOptions.IsHybridAOT)
sw.WriteLine ("\txamarin_mac_hybrid_aot = TRUE;");
+ if (App.EnableDebug)
+ sw.WriteLine ("\txamarin_debug_mode = TRUE;");
+
sw.WriteLine ("\treturn 0;");
sw.WriteLine ("}");
sw.WriteLine ();