You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
36 lines
1.3 KiB
C++
36 lines
1.3 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "IOS/ApplePlatformBackgroundHttp.h"
|
|
#include "IOS/ApplePlatformBackgroundHttpManager.h"
|
|
#include "IOS/ApplePlatformBackgroundHttpRequest.h"
|
|
#include "IOS/ApplePlatformBackgroundHttpResponse.h"
|
|
#include "IOS/IOSBackgroundURLSessionHandler.h"
|
|
|
|
#include "Misc/Paths.h"
|
|
|
|
void FApplePlatformBackgroundHttp::Initialize()
|
|
{
|
|
const FString DefaultIdentifier = TEXT("com.epicgames.backgroundhttp");
|
|
ensureAlwaysMsgf(FBackgroundURLSessionHandler::InitBackgroundSession(DefaultIdentifier), TEXT("Failure to create a background download session with identifier %s"), *DefaultIdentifier);
|
|
}
|
|
|
|
void FApplePlatformBackgroundHttp::Shutdown()
|
|
{
|
|
FBackgroundURLSessionHandler::ShutdownBackgroundSession();
|
|
}
|
|
|
|
FBackgroundHttpManagerPtr FApplePlatformBackgroundHttp::CreatePlatformBackgroundHttpManager()
|
|
{
|
|
return MakeShared<FApplePlatformBackgroundHttpManager, ESPMode::ThreadSafe>();
|
|
}
|
|
|
|
FBackgroundHttpRequestPtr FApplePlatformBackgroundHttp::ConstructBackgroundRequest()
|
|
{
|
|
return MakeShared<FApplePlatformBackgroundHttpRequest, ESPMode::ThreadSafe>();
|
|
}
|
|
|
|
FBackgroundHttpResponsePtr FApplePlatformBackgroundHttp::ConstructBackgroundResponse(int32 ResponseCode, const FString& TempFilePath)
|
|
{
|
|
return MakeShared<FApplePlatformBackgroundHttpResponse, ESPMode::ThreadSafe>(ResponseCode, TempFilePath);
|
|
}
|