Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions src/fileprovider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,18 @@ public enum NSFileProviderContentPolicy : long {
DownloadEagerlyAndKeepDownloaded,
}

/// <summary>Specifies how the system materializes a file provider folder's namespace.</summary>
[Native]
[NoTV, NoMacCatalyst, Mac (27, 0), iOS (27, 0)]
public enum NSFileProviderNamespacePolicy : long {
/// <summary>Inherits the namespace policy from the parent folder.</summary>
Inherited,
/// <summary>Materializes a dataless folder's namespace when the folder is accessed.</summary>
MaterializeLazily,
/// <summary>Keeps the folder's namespace fully materialized and up to date.</summary>
MaterializeEagerly,
}

/// <summary>A batch of data to return from an enumerator.</summary>
[NoMacCatalyst]
[Static]
Expand Down Expand Up @@ -758,6 +770,15 @@ interface NSFileProviderItem {
[NoTV, NoMacCatalyst, iOS (16, 0)]
[Export ("contentPolicy")]
NSFileProviderContentPolicy ContentPolicy { get; }

/// <summary>Gets the policy that controls how the item's namespace is materialized.</summary>
[NoTV, NoMacCatalyst, Mac (27, 0), iOS (27, 0)]
[Export ("namespacePolicy")]
NSFileProviderNamespacePolicy NamespacePolicy {
// Keep the generated extension method's availability in sync.
[NoTV, NoMacCatalyst, Mac (27, 0), iOS (27, 0)]
get;
}
}

/// <summary>A shared object that is accessible from both the containing app and the extension.</summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Documentation as of Xcode 13 as macOS only
!missing-enum! NSFileProviderFileSystemFlags not bound
!missing-enum! NSFileProviderDomainTestingModes not bound
# Header clearly says this enum is not available on Mac Catalyst, not sure why xtro thinks it is.
# Headers explicitly mark these enums unavailable on Mac Catalyst; xtro drops the enum typedef availability.
Comment thread
rolfbjarne marked this conversation as resolved.
!missing-enum! NSFileProviderContentPolicy not bound
!missing-enum! NSFileProviderNamespacePolicy not bound

This file was deleted.

This file was deleted.

This file was deleted.

Loading