[src] API tweaks for Mac Catalyst
This commit is contained in:
Родитель
aaf2818af5
Коммит
cba2d269b9
|
@ -345,6 +345,7 @@ namespace MediaPlayer {
|
||||||
[Watch (5,0)]
|
[Watch (5,0)]
|
||||||
[iOS (11, 0)]
|
[iOS (11, 0)]
|
||||||
[TV (11, 0)]
|
[TV (11, 0)]
|
||||||
|
[MacCatalyst (13, 0)]
|
||||||
[Native]
|
[Native]
|
||||||
public enum MPNowPlayingPlaybackState : ulong
|
public enum MPNowPlayingPlaybackState : ulong
|
||||||
{
|
{
|
||||||
|
|
|
@ -1089,16 +1089,16 @@ namespace Metal {
|
||||||
DepthResolvedSample = 1,
|
DepthResolvedSample = 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
[Unavailable (PlatformName.MacCatalyst)]
|
|
||||||
[Flags, Mac (11,0), NoTV, iOS (13,0)]
|
[Flags, Mac (11,0), NoTV, iOS (13,0)]
|
||||||
[Native, Advice ("This API is not available when using UIKit on macOS.")]
|
[Native]
|
||||||
public enum MTLSparseTextureRegionAlignmentMode : ulong {
|
public enum MTLSparseTextureRegionAlignmentMode : ulong {
|
||||||
Outward = 0x0,
|
Outward = 0x0,
|
||||||
Inward = 0x1,
|
Inward = 0x1,
|
||||||
}
|
}
|
||||||
|
|
||||||
[Unavailable (PlatformName.MacCatalyst)]
|
|
||||||
[Flags, Mac (11,0), NoTV, iOS (13,0)]
|
[Flags, Mac (11,0), NoTV, iOS (13,0)]
|
||||||
|
[MacCatalyst (14, 0)]
|
||||||
[Native, Advice ("This API is not available when using UIKit on macOS.")]
|
[Native, Advice ("This API is not available when using UIKit on macOS.")]
|
||||||
public enum MTLSparseTextureMappingMode : ulong {
|
public enum MTLSparseTextureMappingMode : ulong {
|
||||||
Map = 0x0,
|
Map = 0x0,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#if !__MACCATALYST__
|
||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using ObjCRuntime;
|
using ObjCRuntime;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#if !__MACCATALYST__
|
||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Foundation;
|
using Foundation;
|
||||||
|
@ -31,3 +32,4 @@ namespace VideoSubscriberAccount {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // !__MACCATALYST__
|
||||||
|
|
|
@ -15,7 +15,7 @@ using CoreGraphics;
|
||||||
using Foundation;
|
using Foundation;
|
||||||
using UniformTypeIdentifiers;
|
using UniformTypeIdentifiers;
|
||||||
|
|
||||||
#if IOS && !XAMCORE_4_0
|
#if IOS && !XAMCORE_4_0 && !__MACCATALYST__
|
||||||
using FileProvider;
|
using FileProvider;
|
||||||
|
|
||||||
// This is the original (iOS 8) location of `NSFileProviderExtension`
|
// This is the original (iOS 8) location of `NSFileProviderExtension`
|
||||||
|
@ -215,7 +215,7 @@ namespace FileProvider {
|
||||||
|
|
||||||
[iOS (11,0)]
|
[iOS (11,0)]
|
||||||
[Mac (11,0)]
|
[Mac (11,0)]
|
||||||
[Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")]
|
[MacCatalyst (13, 0)]
|
||||||
[Static]
|
[Static]
|
||||||
interface NSFileProviderItemIdentifier {
|
interface NSFileProviderItemIdentifier {
|
||||||
|
|
||||||
|
@ -232,7 +232,7 @@ namespace FileProvider {
|
||||||
|
|
||||||
[iOS (11,0)]
|
[iOS (11,0)]
|
||||||
[Mac (10,15)]
|
[Mac (10,15)]
|
||||||
[Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")]
|
[MacCatalyst (13, 0)]
|
||||||
[Native]
|
[Native]
|
||||||
[Flags]
|
[Flags]
|
||||||
enum NSFileProviderItemCapabilities : ulong {
|
enum NSFileProviderItemCapabilities : ulong {
|
||||||
|
@ -258,7 +258,7 @@ namespace FileProvider {
|
||||||
|
|
||||||
[iOS (11,0)]
|
[iOS (11,0)]
|
||||||
[Mac (11,0)]
|
[Mac (11,0)]
|
||||||
[Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")]
|
[MacCatalyst (13, 0)]
|
||||||
[Static]
|
[Static]
|
||||||
interface NSFileProviderPage {
|
interface NSFileProviderPage {
|
||||||
|
|
||||||
|
@ -326,7 +326,7 @@ namespace FileProvider {
|
||||||
|
|
||||||
[iOS (11,0)]
|
[iOS (11,0)]
|
||||||
[Mac (10,15)]
|
[Mac (10,15)]
|
||||||
[Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")]
|
[MacCatalyst (13, 0)]
|
||||||
[Protocol]
|
[Protocol]
|
||||||
interface NSFileProviderEnumerationObserver {
|
interface NSFileProviderEnumerationObserver {
|
||||||
|
|
||||||
|
@ -352,7 +352,7 @@ namespace FileProvider {
|
||||||
|
|
||||||
[iOS (11,0)]
|
[iOS (11,0)]
|
||||||
[Mac (10,15)]
|
[Mac (10,15)]
|
||||||
[Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")]
|
[MacCatalyst (13, 0)]
|
||||||
[Protocol]
|
[Protocol]
|
||||||
interface NSFileProviderChangeObserver {
|
interface NSFileProviderChangeObserver {
|
||||||
|
|
||||||
|
@ -382,7 +382,7 @@ namespace FileProvider {
|
||||||
|
|
||||||
[iOS (11,0)]
|
[iOS (11,0)]
|
||||||
[Mac (10,15)]
|
[Mac (10,15)]
|
||||||
[Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")]
|
[MacCatalyst (13, 0)]
|
||||||
[Protocol]
|
[Protocol]
|
||||||
interface NSFileProviderEnumerator {
|
interface NSFileProviderEnumerator {
|
||||||
|
|
||||||
|
@ -405,7 +405,7 @@ namespace FileProvider {
|
||||||
|
|
||||||
[iOS (11,0)]
|
[iOS (11,0)]
|
||||||
[Mac (10,15)]
|
[Mac (10,15)]
|
||||||
[Unavailable (PlatformName.MacCatalyst)][Advice ("This API is not available when using Catalyst on macOS.")]
|
[MacCatalyst (13, 0)]
|
||||||
[Protocol]
|
[Protocol]
|
||||||
interface NSFileProviderItem {
|
interface NSFileProviderItem {
|
||||||
|
|
||||||
|
|
|
@ -1401,13 +1401,11 @@ namespace Metal {
|
||||||
|
|
||||||
[Introduced (PlatformName.MacCatalyst, 14, 0)]
|
[Introduced (PlatformName.MacCatalyst, 14, 0)]
|
||||||
[Mac (11,0), NoTV, iOS (13,0)]
|
[Mac (11,0), NoTV, iOS (13,0)]
|
||||||
[Advice ("This API is not available when using UIKit on macOS.")]
|
|
||||||
[Export ("convertSparseTileRegions:toPixelRegions:withTileSize:numRegions:")]
|
[Export ("convertSparseTileRegions:toPixelRegions:withTileSize:numRegions:")]
|
||||||
void ConvertSparseTileRegions (IntPtr tileRegions, IntPtr pixelRegions, MTLSize tileSize, nuint numRegions);
|
void ConvertSparseTileRegions (IntPtr tileRegions, IntPtr pixelRegions, MTLSize tileSize, nuint numRegions);
|
||||||
|
|
||||||
[Introduced (PlatformName.MacCatalyst, 14, 0)]
|
[Introduced (PlatformName.MacCatalyst, 14, 0)]
|
||||||
[Mac (11,0), NoTV, iOS (13,0)]
|
[Mac (11,0), NoTV, iOS (13,0)]
|
||||||
[Advice ("This API is not available when using UIKit on macOS.")]
|
|
||||||
[Export ("convertSparsePixelRegions:toTileRegions:withTileSize:alignmentMode:numRegions:")]
|
[Export ("convertSparsePixelRegions:toTileRegions:withTileSize:alignmentMode:numRegions:")]
|
||||||
void ConvertSparsePixelRegions (IntPtr pixelRegions, IntPtr tileRegions, MTLSize tileSize, MTLSparseTextureRegionAlignmentMode mode, nuint numRegions);
|
void ConvertSparsePixelRegions (IntPtr pixelRegions, IntPtr tileRegions, MTLSize tileSize, MTLSparseTextureRegionAlignmentMode mode, nuint numRegions);
|
||||||
|
|
||||||
|
|
|
@ -3444,7 +3444,7 @@ namespace SceneKit {
|
||||||
[Deprecated (PlatformName.MacOSX, 10, 14, message: "Please use Metal instead of OpenGL API.")]
|
[Deprecated (PlatformName.MacOSX, 10, 14, message: "Please use Metal instead of OpenGL API.")]
|
||||||
[Export ("pixelFormat", ArgumentSemantic.Retain)]
|
[Export ("pixelFormat", ArgumentSemantic.Retain)]
|
||||||
NSOpenGLPixelFormat PixelFormat { get; set; }
|
NSOpenGLPixelFormat PixelFormat { get; set; }
|
||||||
#elif !WATCH
|
#elif !WATCH && !__MACCATALYST__
|
||||||
[Deprecated (PlatformName.iOS, 12, 0, message: "Please use Metal instead of OpenGL API.")]
|
[Deprecated (PlatformName.iOS, 12, 0, message: "Please use Metal instead of OpenGL API.")]
|
||||||
[Deprecated (PlatformName.TvOS, 12, 0, message: "Please use Metal instead of OpenGL API.")]
|
[Deprecated (PlatformName.TvOS, 12, 0, message: "Please use Metal instead of OpenGL API.")]
|
||||||
[Export ("eaglContext", ArgumentSemantic.Retain)]
|
[Export ("eaglContext", ArgumentSemantic.Retain)]
|
||||||
|
|
Загрузка…
Ссылка в новой задаче