Skip to content

Commit 1100f53

Browse files
CopilotPureWeenjfversluis
authored
[NET10] Make IPlatformMeasureInvalidationController public (#31133)
* Initial plan * Make IPlatformMeasureInvalidationController public for .NET 10 and add comprehensive tests Co-authored-by: PureWeen <[email protected]> * Fix PublicAPI files by adding interface declaration for IPlatformMeasureInvalidationController Co-authored-by: jfversluis <[email protected]> * Fix PublicAPI duplicate symbol error by removing duplicate LerpDelegate.Invoke entries Co-authored-by: PureWeen <[email protected]> * Fix PublicAPI BOM character error in SafeAreaEdgesTypeConverter declaration Co-authored-by: PureWeen <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: PureWeen <[email protected]> Co-authored-by: jfversluis <[email protected]>
1 parent 7d767b5 commit 1100f53

File tree

3 files changed

+24
-5
lines changed

3 files changed

+24
-5
lines changed
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
namespace Microsoft.Maui.Platform;
22

3-
internal interface IPlatformMeasureInvalidationController
3+
/// <summary>
4+
/// Provides platform-specific measure invalidation control for iOS views.
5+
/// </summary>
6+
public interface IPlatformMeasureInvalidationController
47
{
8+
/// <summary>
9+
/// Schedules measure invalidation to occur when the view is moved to a window.
10+
/// This is used to handle scenarios where invalidation is attempted before the view is attached to a window.
11+
/// </summary>
512
void InvalidateAncestorsMeasuresWhenMovedToWindow();
13+
14+
/// <summary>
15+
/// Invalidates the current view via SetNeedsLayout and returns whether to continue propagating the invalidation to ancestors or not.
16+
/// </summary>
17+
/// <param name="isPropagating">True if this invalidation is being propagated from a descendant view, false if this is the initial view that triggered the invalidation.</param>
18+
/// <returns>True to continue propagating invalidation to ancestor views, false to stop propagation.</returns>
619
bool InvalidateMeasure(bool isPropagating = false);
720
}

src/Core/src/PublicAPI/net-ios/PublicAPI.Unshipped.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
#nullable enable
1+
#nullable enable
2+
Microsoft.Maui.Platform.IPlatformMeasureInvalidationController
3+
Microsoft.Maui.Platform.IPlatformMeasureInvalidationController.InvalidateAncestorsMeasuresWhenMovedToWindow() -> void
4+
Microsoft.Maui.Platform.IPlatformMeasureInvalidationController.InvalidateMeasure(bool isPropagating = false) -> bool
5+
virtual Microsoft.Maui.Animations.Lerp.LerpDelegate.Invoke(object! start, object! end, double progress) -> object!
26
Microsoft.Maui.Converters.SafeAreaEdgesTypeConverter
37
Microsoft.Maui.Converters.SafeAreaEdgesTypeConverter.SafeAreaEdgesTypeConverter() -> void
48
Microsoft.Maui.Handlers.ContextFlyoutItemHandlerUpdate.ContextFlyoutItemHandlerUpdate(Microsoft.Maui.Handlers.ContextFlyoutItemHandlerUpdate! original) -> void
@@ -224,7 +228,6 @@ static Microsoft.Maui.SwipeViewSwipeEnded.operator !=(Microsoft.Maui.SwipeViewSw
224228
static Microsoft.Maui.SwipeViewSwipeEnded.operator ==(Microsoft.Maui.SwipeViewSwipeEnded? left, Microsoft.Maui.SwipeViewSwipeEnded? right) -> bool
225229
static Microsoft.Maui.SwipeViewSwipeStarted.operator !=(Microsoft.Maui.SwipeViewSwipeStarted? left, Microsoft.Maui.SwipeViewSwipeStarted? right) -> bool
226230
static Microsoft.Maui.SwipeViewSwipeStarted.operator ==(Microsoft.Maui.SwipeViewSwipeStarted? left, Microsoft.Maui.SwipeViewSwipeStarted? right) -> bool
227-
virtual Microsoft.Maui.Animations.Lerp.LerpDelegate.Invoke(object! start, object! end, double progress) -> object!
228231
virtual Microsoft.Maui.Handlers.ContextFlyoutItemHandlerUpdate.<Clone>$() -> Microsoft.Maui.Handlers.ContextFlyoutItemHandlerUpdate!
229232
virtual Microsoft.Maui.Handlers.ContextFlyoutItemHandlerUpdate.EqualityContract.get -> System.Type!
230233
virtual Microsoft.Maui.Handlers.ContextFlyoutItemHandlerUpdate.Equals(Microsoft.Maui.Handlers.ContextFlyoutItemHandlerUpdate? other) -> bool

src/Core/src/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
#nullable enable
1+
#nullable enable
2+
Microsoft.Maui.Platform.IPlatformMeasureInvalidationController
3+
Microsoft.Maui.Platform.IPlatformMeasureInvalidationController.InvalidateAncestorsMeasuresWhenMovedToWindow() -> void
4+
Microsoft.Maui.Platform.IPlatformMeasureInvalidationController.InvalidateMeasure(bool isPropagating = false) -> bool
5+
virtual Microsoft.Maui.Animations.Lerp.LerpDelegate.Invoke(object! start, object! end, double progress) -> object!
26
Microsoft.Maui.Converters.SafeAreaEdgesTypeConverter
37
Microsoft.Maui.Converters.SafeAreaEdgesTypeConverter.SafeAreaEdgesTypeConverter() -> void
48
Microsoft.Maui.Handlers.ContextFlyoutItemHandlerUpdate.ContextFlyoutItemHandlerUpdate(Microsoft.Maui.Handlers.ContextFlyoutItemHandlerUpdate! original) -> void
@@ -227,7 +231,6 @@ static Microsoft.Maui.SwipeViewSwipeEnded.operator !=(Microsoft.Maui.SwipeViewSw
227231
static Microsoft.Maui.SwipeViewSwipeEnded.operator ==(Microsoft.Maui.SwipeViewSwipeEnded? left, Microsoft.Maui.SwipeViewSwipeEnded? right) -> bool
228232
static Microsoft.Maui.SwipeViewSwipeStarted.operator !=(Microsoft.Maui.SwipeViewSwipeStarted? left, Microsoft.Maui.SwipeViewSwipeStarted? right) -> bool
229233
static Microsoft.Maui.SwipeViewSwipeStarted.operator ==(Microsoft.Maui.SwipeViewSwipeStarted? left, Microsoft.Maui.SwipeViewSwipeStarted? right) -> bool
230-
virtual Microsoft.Maui.Animations.Lerp.LerpDelegate.Invoke(object! start, object! end, double progress) -> object!
231234
virtual Microsoft.Maui.Handlers.ContextFlyoutItemHandlerUpdate.<Clone>$() -> Microsoft.Maui.Handlers.ContextFlyoutItemHandlerUpdate!
232235
virtual Microsoft.Maui.Handlers.ContextFlyoutItemHandlerUpdate.EqualityContract.get -> System.Type!
233236
virtual Microsoft.Maui.Handlers.ContextFlyoutItemHandlerUpdate.Equals(Microsoft.Maui.Handlers.ContextFlyoutItemHandlerUpdate? other) -> bool

0 commit comments

Comments
 (0)