Navigation
API > API/Plugins > API/Plugins/MetaHumanSDKEditor
Base class for MH Service Clients Implements the core "message loop" and delegates to specific handlers as needed. Handles:
Request building (delegates to subclass for payload details)
Success and Error response delegation
NOTE: This class is not intended to be used directly (and indeed it can't)
| Name | FMetaHumanServiceRequestBase |
| Type | class |
| Header File | /Engine/Plugins/MetaHuman/MetaHumanSDK/Source/MetaHumanSDKEditor/Public/Cloud/MetaHumanServiceRequest.h |
| Include Path | #include "Cloud/MetaHumanServiceRequest.h" |
Syntax
class FMetaHumanServiceRequestBase : public TSharedFromThis< FMetaHumanServiceRequestBase, ESPMode::ThreadSafe >
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → FMetaHumanServiceRequestBase
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMetaHumanServiceRequestBase() |
Cloud/MetaHumanServiceRequest.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FMetaHumanServiceRequestBase() |
Cloud/MetaHumanServiceRequest.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MetaHumanServiceRequestProgressDelegate | FMetaHumanServiceRequestProgressDelegate | Cloud/MetaHumanServiceRequest.h | ||
| OnMetaHumanServiceRequestBeginDelegate | FSimpleDelegate | Cloud/MetaHumanServiceRequest.h | ||
| OnMetaHumanServiceRequestFailedDelegate | FMetaHumanServiceRequestFailedDelegate | Cloud/MetaHumanServiceRequest.h |
Functions
Public
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedPtr< IHttpRequest > CreateRequest
(
FRequestContextBasePtr Context |
Create a request, but don't start executing it | Cloud/MetaHumanServiceRequest.h | |
bool DoBuildRequest
(
TSharedRef< IHttpRequest > Request, |
Build a request packet for a particular MH service Note that this can be called multiple times during an ExecuteRequest (for the same request), if for example the user first has to accept a EULA. | Cloud/MetaHumanServiceRequest.h | |
void ExecuteRequestAsync
(
FRequestContextBasePtr Context |
Create and execute a request directly. | Cloud/MetaHumanServiceRequest.h | |
void OnRequestCompleted
(
const TArray< uint8 >& Response, |
Invoked when the request is complete and a response payload is available the subclass is expected to package this into a adapter and forward to a service specific user delegate | Cloud/MetaHumanServiceRequest.h | |
virtual void OnRequestFailed
(
EMetaHumanServiceRequestResult Result, |
Can be overriden in the subclass if a context is needed should always be super:: invoked | Cloud/MetaHumanServiceRequest.h |