UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ApplePlatformBackgroundHttpRequest.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
7
13{
14public:
17
18 virtual void PauseRequest() override;
19 virtual void ResumeRequest() override;
20
21#if !UE_BUILD_SHIPPING
22 virtual void GetDebugText(TArray<FString>& Output) override;
23#endif
24
25protected:
26 void SetInternalDownloadId(uint64 Id) {DownloadId = Id;}
27 uint64 GetInternalDownloadId() const {return DownloadId;}
28
29 void UpdateProgress();
30
31 static float BackgroundRequestPriorityToNSURLSessionPriority(const EBackgroundHTTPPriority Priority);
33 {
34 return BackgroundRequestPriorityToNSURLSessionPriority(GetRequestPriority());
35 }
36
38private:
39 uint64 DownloadId;
40
41 uint64 LastReportedDownloadedBytes = 0;
42
43 int MetricsWaitCounter = -1;
44};
45
TSharedPtr< class FApplePlatformBackgroundHttpRequest, ESPMode::ThreadSafe > FAppleBackgroundHttpRequestPtr
Definition ApplePlatformBackgroundHttpRequest.h:46
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
EBackgroundHTTPPriority
Definition IBackgroundHttpRequest.h:57
Definition ApplePlatformBackgroundHttpManager.h:20
Definition ApplePlatformBackgroundHttpRequest.h:13
void SetInternalDownloadId(uint64 Id)
Definition ApplePlatformBackgroundHttpRequest.h:26
float GetNSURLSessionPriority() const
Definition ApplePlatformBackgroundHttpRequest.h:32
virtual ~FApplePlatformBackgroundHttpRequest()=default
uint64 GetInternalDownloadId() const
Definition ApplePlatformBackgroundHttpRequest.h:27
Definition BackgroundHttpRequestImpl.h:20
virtual BACKGROUNDHTTP_API void ResumeRequest() override
Definition BackgroundHttpRequestImpl.cpp:43
virtual BACKGROUNDHTTP_API void PauseRequest() override
Definition BackgroundHttpRequestImpl.cpp:36
virtual BACKGROUNDHTTP_API EBackgroundHTTPPriority GetRequestPriority() const override
Definition BackgroundHttpRequestImpl.cpp:221
virtual void GetDebugText(TArray< FString > &Output)
Definition IBackgroundHttpRequest.h:278
Definition Array.h:670
Definition SharedPointer.h:692