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
14 changes: 6 additions & 8 deletions src/Foundation/NSRunLoop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,13 @@ namespace Foundation {

public partial class NSRunLoop {

/// <summary>To be added.</summary>
/// <remarks>To be added.</remarks>
/// <summary>Stops the receiver's underlying run loop.</summary>
public void Stop ()
{
GetCFRunLoop ().Stop ();
}

/// <summary>To be added.</summary>
/// <remarks>To be added.</remarks>
/// <summary>Wakes the receiver's underlying run loop.</summary>
public void WakeUp ()
{
GetCFRunLoop ().WakeUp ();
Expand All @@ -44,10 +42,10 @@ public void WakeUp ()
static public partial class NSRunLoopModeExtensions {

// this is a less common pattern so it's not automatically generated
/// <param name="self">The instance on which this method operates.</param>
/// <summary>To be added.</summary>
/// <returns>To be added.</returns>
/// <remarks>To be added.</remarks>
/// <summary>Gets the native constants for a collection of run loop modes.</summary>
/// <param name="self">The run loop modes to convert.</param>
/// <returns>The native constants corresponding to the specified run loop modes.</returns>
Comment thread
rolfbjarne marked this conversation as resolved.
Resolved
/// <exception cref="ArgumentNullException"><paramref name="self" /> is <see langword="null" />.</exception>
public static NSString [] GetConstants (this NSRunLoopMode [] self)
{
if (self is null)
Expand Down
9 changes: 3 additions & 6 deletions src/Foundation/NSZone.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ namespace Foundation {

// Helper to (mostly) support NS[Mutable]Copying protocols
/// <summary>An OS-controlled area within memory from which objects are allocated.</summary>
/// <remarks>To be added.</remarks>
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
Expand Down Expand Up @@ -36,9 +35,8 @@ internal NSZone (NativeHandle handle, bool owns)
public NativeHandle Handle { get; private set; }

#if !COREBUILD
/// <summary>To be added.</summary>
/// <value>To be added.</value>
/// <remarks>To be added.</remarks>
/// <summary>Gets or sets the name of the zone.</summary>
/// <value>The zone name, or <see langword="null" /> if the zone has no name.</value>
public string? Name {
get {
return CFString.FromHandle (NSZoneName (Handle));
Expand All @@ -54,8 +52,7 @@ public string? Name {
}

// note: Copy(NSZone) and MutableCopy(NSZone) with a nil pointer == default
/// <summary>To be added.</summary>
/// <remarks>To be added.</remarks>
/// <summary>The default memory allocation zone.</summary>
public static readonly NSZone Default = new NSZone (NSDefaultMallocZone (), false);
#endif
}
Expand Down
11 changes: 5 additions & 6 deletions src/GLKit/GLKMesh.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@
namespace GLKit {

public partial class GLKMesh {
/// <param name="asset">To be added.</param>
/// <param name="sourceMeshes">To be added.</param>
/// <param name="error">To be added.</param>
/// <summary>To be added.</summary>
/// <returns>To be added.</returns>
/// <remarks>To be added.</remarks>
/// <summary>Creates GLKit meshes from the meshes in a Model I/O asset.</summary>
/// <param name="asset">The asset containing the source meshes.</param>
/// <param name="sourceMeshes">The Model I/O meshes corresponding to the returned GLKit meshes.</param>
/// <param name="error">On failure, contains an error that describes the problem.</param>
/// <returns>The created GLKit meshes, or <see langword="null" /> if they could not be created.</returns>
public static GLKMesh []? FromAsset (MDLAsset asset, out MDLMesh []? sourceMeshes, out NSError? error)
{
var ret = FromAsset (asset, out NSArray? aret, out error);
Expand Down
14 changes: 6 additions & 8 deletions src/HomeKit/HMService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,17 @@ namespace HomeKit {
public partial class HMService {

#if !TVOS
/// <param name="serviceType">To be added.</param>
/// <param name="completion">To be added.</param>
/// <summary>Specifies that the device attached to a switch or outlet is of type <paramref name="serviceType" />. After the system sets the association, the system runs <paramref name="completion" />.</summary>
/// <remarks>To be added.</remarks>
/// <summary>Updates the type of device associated with the service.</summary>
/// <param name="serviceType">The associated service type.</param>
/// <param name="completion">The handler to invoke after the update completes.</param>
public void UpdateAssociatedServiceType (HMServiceType serviceType, Action<NSError> completion)
{
UpdateAssociatedServiceType (serviceType.GetConstant (), completion);
}

/// <param name="serviceType">To be added.</param>
/// <summary>Asynchronously updates the associated service type to <paramref name="serviceType" /></summary>
/// <returns>To be added.</returns>
/// <remarks>To be added.</remarks>
/// <summary>Asynchronously updates the type of device associated with the service.</summary>
/// <param name="serviceType">The associated service type.</param>
/// <returns>A task that represents the update operation.</returns>
public Task UpdateAssociatedServiceTypeAsync (HMServiceType serviceType)
{
return UpdateAssociatedServiceTypeAsync (serviceType.GetConstant ());
Expand Down
11 changes: 5 additions & 6 deletions src/Intents/INPriceRange.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

namespace Intents {
/// <summary>Enumerates the minimum and maximum values of a price range.</summary>
/// <remarks>To be added.</remarks>
public enum INPriceRangeOption {
/// <summary>The greatest price.</summary>
Maximum,
Expand All @@ -23,11 +22,11 @@ public enum INPriceRangeOption {

public partial class INPriceRange {

/// <param name="option">To be added.</param>
/// <param name="price">To be added.</param>
/// <param name="currencyCode">To be added.</param>
/// <summary>To be added.</summary>
/// <remarks>To be added.</remarks>
/// <summary>Creates a price range with either a minimum or maximum price.</summary>
/// <param name="option">Whether <paramref name="price" /> is the minimum or maximum price.</param>
/// <param name="price">The price at the selected range boundary.</param>
/// <param name="currencyCode">The ISO 4217 currency code for <paramref name="price" />.</param>
/// <exception cref="ArgumentOutOfRangeException"><paramref name="option" /> is not a valid value.</exception>
public INPriceRange (INPriceRangeOption option, NSDecimalNumber price, string currencyCode)
: base (NSObjectFlag.Empty)
{
Expand Down
13 changes: 6 additions & 7 deletions src/MetalKit/MTKMesh.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@
namespace MetalKit {

public partial class MTKMesh {
/// <param name="asset">To be added.</param>
/// <param name="device">To be added.</param>
/// <param name="sourceMeshes">To be added.</param>
/// <param name="error">To be added.</param>
/// <summary>Creates and returns a new Metal Kit mesh from the supplied Model IO asset.</summary>
/// <returns>To be added.</returns>
/// <remarks>To be added.</remarks>
/// <summary>Creates MetalKit meshes from the meshes in a Model I/O asset.</summary>
/// <param name="asset">The asset containing the source meshes.</param>
/// <param name="device">The Metal device on which to create the mesh resources.</param>
/// <param name="sourceMeshes">The Model I/O meshes corresponding to the returned MetalKit meshes.</param>
/// <param name="error">On failure, contains an error that describes the problem.</param>
/// <returns>The created MetalKit meshes, or <see langword="null" /> if they could not be created.</returns>
public static MTKMesh []? FromAsset (MDLAsset asset, IMTLDevice device, out MDLMesh []? sourceMeshes, out NSError error)
{
NSArray aret;
Expand Down
10 changes: 4 additions & 6 deletions src/VideoToolbox/VTPropertyOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
namespace VideoToolbox {

public partial class VTPropertyOptions {
/// <summary>To be added.</summary>
/// <value>To be added.</value>
/// <remarks>To be added.</remarks>
/// <summary>Gets or sets the property's value type.</summary>
/// <value>The property value type.</value>
public VTPropertyType Type {
get {
var key = GetNSStringValue (VTPropertyKeys.Type);
Expand Down Expand Up @@ -52,9 +51,8 @@ public VTPropertyType Type {
}
}

/// <summary>To be added.</summary>
/// <value>To be added.</value>
/// <remarks>To be added.</remarks>
/// <summary>Gets or sets whether the property can be read or written.</summary>
/// <value>The property's read/write status.</value>
public VTReadWriteStatus ReadWriteStatus {
get {
var key = GetNSStringValue (VTPropertyKeys.ReadWriteStatus);
Expand Down
13 changes: 7 additions & 6 deletions src/VideoToolbox/VTUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

namespace VideoToolbox {
/// <summary>Extensions class for <see cref="CoreVideo.CVPixelBuffer" />.</summary>
/// <remarks>To be added.</remarks>
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("tvos")]
Expand All @@ -30,11 +29,11 @@ unsafe 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
/// <param name="pixelBuffer">To be added.</param>
/// <param name="image">To be added.</param>
/// <summary>To be added.</summary>
/// <returns>To be added.</returns>
/// <remarks>To be added.</remarks>
/// <summary>Creates a Core Graphics image from a pixel buffer.</summary>
/// <param name="pixelBuffer">The pixel buffer to convert.</param>
/// <param name="image">On success, the created image; otherwise, <see langword="null" />.</param>
/// <returns>A status code that indicates whether the conversion succeeded.</returns>
Comment thread
rolfbjarne marked this conversation as resolved.
Resolved
/// <exception cref="ArgumentNullException"><paramref name="pixelBuffer" /> is <see langword="null" />.</exception>
public static VTStatus ToCGImage (this CVPixelBuffer pixelBuffer, out CGImage? image)
{
if (pixelBuffer is null)
Expand All @@ -61,6 +60,8 @@ public static VTStatus ToCGImage (this CVPixelBuffer pixelBuffer, out CGImage? i
[DllImport (Constants.VideoToolboxLibrary)]
static extern void VTRegisterSupplementalVideoDecoderIfAvailable (uint codecType);

/// <summary>Registers the supplemental video decoder for a codec if one is available.</summary>
/// <param name="codecType">The video codec for which to register a supplemental decoder.</param>
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("ios26.4")]
[SupportedOSPlatform ("tvos26.4")]
Expand Down
1 change: 0 additions & 1 deletion tests/cecil-tests/Documentation.KnownFailures.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15835,7 +15835,6 @@ M:VideoToolbox.VTSuperResolutionScalerParameters.#ctor(VideoToolbox.VTFrameProce
M:VideoToolbox.VTSupportedEncoderProperties.#ctor
M:VideoToolbox.VTTemporalNoiseFilterConfiguration.#ctor(System.IntPtr,System.IntPtr,CoreMedia.CMPixelFormat)
M:VideoToolbox.VTTemporalNoiseFilterParameters.#ctor(VideoToolbox.VTFrameProcessorFrame,VideoToolbox.VTFrameProcessorFrame[],VideoToolbox.VTFrameProcessorFrame[],VideoToolbox.VTFrameProcessorFrame,System.Single,System.Byte)
M:VideoToolbox.VTUtilities.RegisterSupplementalVideoDecoder(CoreMedia.CMVideoCodecType)
M:Vision.VNDetectBarcodesRequest.GetSupportedSymbologies(Foundation.NSError@)
M:Vision.VNFeaturePrintObservation.ComputeDistance(System.Single[]@,Vision.VNFeaturePrintObservation,Foundation.NSError@)
M:Vision.VNGenerateOpticalFlowRequest.#ctor(CoreGraphics.CGImage,ImageIO.CGImagePropertyOrientation,Vision.VNImageOptions,Vision.VNRequestCompletionHandler)
Expand Down
Loading