Home API reference Classes FCohtmlFileHandler FCohtmlFileHandler
Inherits from FTickableGameObject, IAsyncResourceHandler
Public Types # Public Functions # Name FCohtmlFileHandler ()virtual ~FCohtmlFileHandler () overridevirtual void CancelResourceRequests ()virtual void OnResourceRequest (const cohtml::IAsyncResourceRequest * request, cohtml::IAsyncResourceResponse * response) overridevirtual void OnResourceStreamRequest (const cohtml::IAsyncResourceRequest * request, cohtml::IAsyncResourceStreamResponse * response) overridevirtual void OnAbortResourceRequest (unsigned id) override Called when the backend wants a load to abort. The user is STILL REQUIRED to call Finish on the resource response with the associated request.virtual void OnUserImageDropped (void * UserData, void * TexturePtr)virtual void SetActiveSystem (TWeakPtr< class FCohtmlSystemWrapper , ESPMode::ThreadSafe > SystemPtr)virtual bool IsCurrentlyLoading ()virtual FCohtmlPathResolver * GetPathResolver ()virtual void EnsureNoResourceRequests ()virtual bool TryGetResourcePath (const cohtml::IAsyncResourceRequest * Request, EResourceProtocol & ResourceProtocol, FURLWithFallbacks & ResultPath)virtual void OnUnrealResourceLoaded (unsigned Id, const FUnrealResourceTaskPtr ResourceTask)virtual void OnUnrealResourceLoaded (unsigned Id, FCohUnrealResourcePtr & ResourcePtr, cohtml::IAsyncResourceResponse * Response)virtual bool TryConvertFilenameToTexture2DPath (const FString & Path, FString & ConvertedPath)virtual bool TryEnqueueUnrealResource (unsigned Id, const FString & RelativePath, cohtml::IAsyncResourceResponse * Response)virtual bool TryReceiveUserImage (FCohUnrealResourcePtr & Resource, cohtml::IAsyncResourceResponse * Response)virtual void Tick (float DeltaTime) overridevirtual bool IsTickable () const overridevirtual bool IsTickableInEditor () const overridevirtual bool IsTickableWhenPaused () const overridevirtual TStatId GetStatId () const overridevirtual UTexture * TryLoadUAssetImmediately (FSoftObjectPath RequestPathAsset)FURLWithFallbacks GeneratePossibleURLs (const cohtml::IAsyncResourceRequest * Request)
Public Attributes # Friends # Public Types Documentation # enum EResourceProtocol # Enumerator Value Description Coui UnrealAsset Http
Public Functions Documentation # function FCohtmlFileHandler # FCohtmlFileHandler()
function ~FCohtmlFileHandler # virtual ~FCohtmlFileHandler() override
function CancelResourceRequests # virtual void CancelResourceRequests()
function OnResourceRequest # virtual void OnResourceRequest(
const cohtml::IAsyncResourceRequest * request,
cohtml::IAsyncResourceResponse * response
) override
function OnResourceStreamRequest # virtual void OnResourceStreamRequest(
const cohtml::IAsyncResourceRequest * request,
cohtml::IAsyncResourceStreamResponse * response
) override
function OnAbortResourceRequest # virtual void OnAbortResourceRequest(
unsigned id
) override
Called when the backend wants a load to abort. The user is STILL REQUIRED to call Finish on the resource response with the associated request.
function OnUserImageDropped # virtual void OnUserImageDropped(
void * UserData,
void * TexturePtr
)
function SetActiveSystem # virtual void SetActiveSystem(
TWeakPtr< class FCohtmlSystemWrapper, ESPMode::ThreadSafe > SystemPtr
)
function IsCurrentlyLoading # virtual bool IsCurrentlyLoading()
function GetPathResolver # virtual FCohtmlPathResolver * GetPathResolver()
function EnsureNoResourceRequests # virtual void EnsureNoResourceRequests()
function TryGetResourcePath # virtual bool TryGetResourcePath(
const cohtml::IAsyncResourceRequest * Request,
EResourceProtocol & ResourceProtocol,
FURLWithFallbacks & ResultPath
)
function OnUnrealResourceLoaded # virtual void OnUnrealResourceLoaded(
unsigned Id,
const FUnrealResourceTaskPtr ResourceTask
)
function OnUnrealResourceLoaded # virtual void OnUnrealResourceLoaded(
unsigned Id,
FCohUnrealResourcePtr & ResourcePtr,
cohtml::IAsyncResourceResponse * Response
)
function TryConvertFilenameToTexture2DPath # virtual bool TryConvertFilenameToTexture2DPath(
const FString & Path,
FString & ConvertedPath
)
function TryEnqueueUnrealResource # virtual bool TryEnqueueUnrealResource(
unsigned Id,
const FString & RelativePath,
cohtml::IAsyncResourceResponse * Response
)
function TryReceiveUserImage # virtual bool TryReceiveUserImage(
FCohUnrealResourcePtr & Resource,
cohtml::IAsyncResourceResponse * Response
)
function Tick # virtual void Tick(
float DeltaTime
) override
function IsTickable # inline virtual bool IsTickable() const override
function IsTickableInEditor # inline virtual bool IsTickableInEditor() const override
function IsTickableWhenPaused # inline virtual bool IsTickableWhenPaused() const override
function GetStatId # virtual TStatId GetStatId() const override
virtual UTexture * TryLoadUAssetImmediately(
FSoftObjectPath RequestPathAsset
)
function GeneratePossibleURLs # FURLWithFallbacks GeneratePossibleURLs(
const cohtml::IAsyncResourceRequest * Request
)
Public Attributes Documentation # variable UnrealResourceQueue # TMap< unsigned, FUnrealResourceTaskPtr > UnrealResourceQueue;
variable StreamableManager # FStreamableManager StreamableManager;
variable UnrealResourceLock # FCriticalSection UnrealResourceLock;
variable PendingUnrealResourceLock # FCriticalSection PendingUnrealResourceLock;
variable PendingUnrealResources # TMap< unsigned, FTexturePendingReceival > PendingUnrealResources;
variable AbortedPendingUnrealResources # TArray< FCohUnrealResourcePtr > AbortedPendingUnrealResources;
variable HTTPFileHandler # FCohtmlHTTPFileHandler HTTPFileHandler;
variable RawResourceHandler # FCohtmlRawResourceHandler RawResourceHandler;
variable FallbackURLsOverride # ICohtmlPlugin::FOnURLRequest FallbackURLsOverride;
variable System # TWeakPtr< class FCohtmlSystemWrapper, ESPMode::ThreadSafe > System;
variable PathResolver # TUniquePtr< FCohtmlPathResolver > PathResolver;
Friends # friend FCohtmlUnrealResourceLoaderTask # friend class FCohtmlUnrealResourceLoaderTask;