UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ApplePlatformBackgroundHttpManager.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6
10
12
14
20{
21public:
24
25 virtual void AddRequest(const FBackgroundHttpRequestPtr Request) override;
26 virtual void RemoveRequest(const FBackgroundHttpRequestPtr Request) override;
27 virtual void SetCellularPreference(int32 Value) override;
28 virtual bool IsGenericImplementation() const override { return false; }
29 virtual bool Tick(float DeltaTime) override;
30
31private:
32 TArray<FBackgroundHttpRequestPtr> PendingRemoveRequests;
33 FRWLock PendingRemoveRequestLock;
34 FDelegateHandle OnDownloadCompletedHandle;
35 FDelegateHandle OnDownloadMetricsExtendedHandle;
36 void OnDownloadCompleted(const uint64 DownloadId, const bool bSuccess);
37 void OnDownloadMetricsExtended(const uint64 DownloadId, const FBackgroundHttpRequestMetricsExtended MetricsExtended);
38};
TWeakPtr< FApplePlatformBackgroundHttpRequest, ESPMode::ThreadSafe > FBackgroundHttpURLMappedRequestPtr
Definition ApplePlatformBackgroundHttpManager.h:11
bool bSuccess
Definition ConvexDecomposition3.cpp:819
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
FPlatformTypes::uint64 uint64
A 64-bit unsigned integer.
Definition Platform.h:1117
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define DECLARE_DELEGATE(DelegateName)
Definition DelegateCombinations.h:20
Definition ApplePlatformBackgroundHttpManager.h:20
virtual bool IsGenericImplementation() const override
Definition ApplePlatformBackgroundHttpManager.h:28
Definition BackgroundHttpManagerImpl.h:27
virtual BACKGROUNDHTTP_API void RemoveRequest(const FBackgroundHttpRequestPtr Request) override
Definition BackgroundHttpManagerImpl.cpp:313
virtual void SetCellularPreference(int32 Value) override
Definition BackgroundHttpManagerImpl.h:47
virtual BACKGROUNDHTTP_API void AddRequest(const FBackgroundHttpRequestPtr Request) override
Definition BackgroundHttpManagerImpl.cpp:299
Definition IDelegateInstance.h:14
Definition Array.h:670
Definition SharedPointer.h:692
Definition SharedPointer.h:1295
Definition CriticalSection.h:14
Definition BackgroundHttpMetrics.h:8