Skip to content

Commit

Permalink
Add MauiUIApplicationDelegate.PerformFetch
Browse files Browse the repository at this point in the history
  • Loading branch information
jfversluis committed Mar 2, 2023
1 parent 7f3b34f commit 030f091
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Core/src/Platform/iOS/MauiUIApplicationDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ public virtual void ApplicationSignificantTimeChange(UIApplication application)
Services?.InvokeLifecycleEvents<iOSLifecycle.ApplicationSignificantTimeChange>(del => del(application));
}

[Export("application:performFetchWithCompletionHandler:")]
public virtual void PerformFetch(UIApplication application, Action<UIBackgroundFetchResult> completionHandler)
{
Services?.InvokeLifecycleEvents<iOSLifecycle.PerformFetch>(del => del(application));
}

public static MauiUIApplicationDelegate Current { get; private set; } = null!;

[Export("window")]
Expand Down
1 change: 1 addition & 0 deletions src/Core/src/PublicAPI/net-ios/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ static Microsoft.Maui.Platform.WebViewExtensions.UpdateUserAgent(this WebKit.WKW
Microsoft.Maui.WeakEventManager.HandleEvent(object? sender, object? args, string! eventName) -> void
static Microsoft.Maui.SizeRequest.operator !=(Microsoft.Maui.SizeRequest left, Microsoft.Maui.SizeRequest right) -> bool
static Microsoft.Maui.SizeRequest.operator ==(Microsoft.Maui.SizeRequest left, Microsoft.Maui.SizeRequest right) -> bool
virtual Microsoft.Maui.MauiUIApplicationDelegate.PerformFetch(UIKit.UIApplication! application, System.Action<UIKit.UIBackgroundFetchResult>! completionHandler) -> void

0 comments on commit 030f091

Please sign in to comment.