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
4 changes: 2 additions & 2 deletions docs/api/UIKit/UIView.xml
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ var myView = new UIView (new CGRect (0, 0, 100, 100));
<h2>Animation</h2>
</format>
<para>Apple recommends that app developers use the <see cref="UIKit.UIViewPropertyAnimator" /> class to implement animations on their <see cref="UIKit.UIView" /> objects. Apple also discourages, but has not deprecated, any other animation APIs on the <see cref="UIKit.UIView" /> class. Additionally, developers can implement implicit animations for some or all properties by creating a custom views that has a custom <see cref="UIKit.UIView.Layer" /> property that provides animation actions for animation keys.</para>
<para>Developers can animate changes in the geometry or appearance of a UIView by creating a new <see cref="UIKit.UIViewPropertyAnimator" />, configuring it, and calling its <see cref="UIKit.UIViewPropertyAnimator.StartAnimation(System.Double)" /> method. Developers can update the animations (for example, to cancel it) by calling the <see cref="UIKit.UIViewPropertyAnimator.AddAnimations(System.Action,nfloat)" /> method while the animation is in progress. The <format type="text/html"><a href="https://developer.xamarin.com/recipes/ios/animation/coreanimation/animate_a_uiview_using_uikit/">Animate a UIView using UIKit</a></format> recipe shows how to create an cancel an animation by using the <see cref="UIKit.UIViewPropertyAnimator" /> class.</para>
<para>Developers can animate changes in the geometry or appearance of a UIView by creating a new <see cref="UIKit.UIViewPropertyAnimator" />, configuring it, and calling its <see cref="UIKit.UIViewPropertyAnimator.StartAnimation(System.Double)" /> method. Developers can update the animations (for example, to cancel it) by calling the <see cref="UIKit.UIViewPropertyAnimator.AddAnimations(System.Action,nfloat)" /> method while the animation is in progress. See Apple's <format type="text/html"><a href="https://developer.apple.com/documentation/uikit/uiviewpropertyanimator">UIViewPropertyAnimator documentation</a></format> for information about creating and controlling animations.</para>
<para>
Alternatively, developers can create animations by calling the
<see cref="UIKit.UIView.BeginAnimations(string)" /> method, configuring the animation, making the
Expand Down Expand Up @@ -1651,4 +1651,4 @@ void Setup ()
</example>
</remarks>
</Docs>
</Documentation>
</Documentation>
10 changes: 8 additions & 2 deletions src/AppKit/NSApplication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@

namespace AppKit {
public partial class NSApplication : NSResponder {
/// <inheritdoc cref="Runtime.CheckForIllegalCrossThreadCalls" />
/// <summary>Controls whether calls to AppKit APIs are checked to ensure that they are made on the UI thread.</summary>
/// <remarks>
/// <para>Accessing AppKit APIs from a background thread can corrupt application state. These checks help identify such accesses.</para>
/// <para>The initial value is controlled by the <c>CheckForIllegalCrossThreadCalls</c> build property, which defaults to <see langword="true" /> in debug builds and <see langword="false" /> in release builds.</para>
/// </remarks>
public static bool CheckForIllegalCrossThreadCalls;
/// <summary>To be added.</summary>
/// <remarks>To be added.</remarks>
Expand Down Expand Up @@ -92,7 +96,9 @@ public static void Main (string [] args)
}
}

/// <inheritdoc cref="ObjCRuntime.Runtime.EnsureUIThread" />
/// <summary>Checks that the current call is made on the UI thread.</summary>
/// <exception cref="AppKitThreadAccessException">Thread checks are enabled and the current thread is not the UI thread.</exception>
/// <remarks>This method does nothing when <see cref="CheckForIllegalCrossThreadCalls" /> is <see langword="false" />. Thread checks are enabled by default in debug builds and disabled by default in release builds.</remarks>
public static void EnsureUIThread ()
{
Runtime.EnsureUIThread ();
Expand Down
4 changes: 3 additions & 1 deletion src/Compression/Compression.cs
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,9 @@ private void PurgeBuffers (bool disposing)
}
}

/// <inheritdoc />
/// <summary>Releases the resources used by this stream and optionally disposes the underlying stream.</summary>
/// <param name="disposing"><see langword="true" /> to release managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
/// <remarks>The underlying stream is disposed only when <paramref name="disposing" /> is <see langword="true" /> and this stream was not configured to leave it open.</remarks>
protected override void Dispose (bool disposing)
{
try {
Expand Down
3 changes: 2 additions & 1 deletion src/Foundation/NSUrlSessionHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ void RemoveInflightData (NSUrlSessionTask task, bool cancel = true)
task?.Dispose ();
}

/// <inheritdoc />
/// <summary>Cancels pending requests and releases the resources used by this handler.</summary>
/// <param name="disposing"><see langword="true" /> to release managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
protected override void Dispose (bool disposing)
{
var tasks = new List<NSUrlSessionTask> ();
Expand Down
3 changes: 2 additions & 1 deletion src/System.Net.Http/CFNetworkHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ public bool UseSystemProxy {

// TODO: Add more properties

/// <inheritdoc />
/// <summary>Invokes the base handler's disposal implementation.</summary>
/// <param name="disposing">The disposal flag passed to the base handler.</param>
protected override void Dispose (bool disposing)
{
// TODO: CloseStream remaining stream buckets if there are any
Expand Down
10 changes: 8 additions & 2 deletions src/UIKit/UIApplication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ public UIKitThreadAccessException () : base ("UIKit Consistency error: you are c

public partial class UIApplication
: UIResponder {
/// <inheritdoc cref="Runtime.CheckForIllegalCrossThreadCalls" />
/// <summary>Controls whether calls to UIKit APIs are checked to ensure that they are made on the UI thread.</summary>
/// <remarks>
/// <para>Accessing UIKit APIs from a background thread can corrupt application state. These checks help identify such accesses.</para>
/// <para>The initial value is controlled by the <c>CheckForIllegalCrossThreadCalls</c> build property, which defaults to <see langword="true" /> in debug builds and <see langword="false" /> in release builds.</para>
/// </remarks>
public static bool CheckForIllegalCrossThreadCalls;
/// <summary>If <see langword="true" />, the system will try to diagnose potential mistakes where events and delegate-object overrides are in conflict.</summary>
public static bool CheckForEventAndDelegateMismatches = true;
Expand Down Expand Up @@ -115,7 +119,9 @@ public static void Main (string []? args)
#endif
}

/// <inheritdoc cref="ObjCRuntime.Runtime.EnsureUIThread" />
/// <summary>Checks that the current call is made on the UI thread.</summary>
/// <exception cref="UIKitThreadAccessException">Thread checks are enabled and the current thread is not the UI thread.</exception>
/// <remarks>This method does nothing when <see cref="CheckForIllegalCrossThreadCalls" /> is <see langword="false" />. Thread checks are enabled by default in debug builds and disabled by default in release builds.</remarks>
public static void EnsureUIThread ()
{
Runtime.EnsureUIThread ();
Expand Down
2 changes: 1 addition & 1 deletion src/bgen/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7326,7 +7326,7 @@ public void Generate (Type type)
// if there are any [Dispose] attributes then they all must opt-in in order for the generated Dispose method to be optimizable
bool optimizable = !has_dispose_attributes || IsOptimizable (type);
if (BindingTouch.SupportsXmlDocumentation)
print ("/// <inheritdoc />");
print ("/// <inheritdoc cref=\"Foundation.NSObject.Dispose(bool)\" />");
print_generated_code (optimizable: optimizable);
print ("protected override void Dispose (bool disposing)");
print ("{");
Expand Down
4 changes: 2 additions & 2 deletions tests/bgen/tests/ExpectedXmlDocs.MacCatalyst.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/bgen/tests/ExpectedXmlDocs.iOS.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/bgen/tests/ExpectedXmlDocs.macOS.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/bgen/tests/ExpectedXmlDocs.tvOS.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading