IPortalServiceProvider::GetService

Get a service instance of the specified type.

Windows
MacOS
Linux

References

Module

PortalServices

Header

/Engine/Source/Runtime/Portal/Services/Public/IPortalServiceProvider.h

Include

#include "IPortalServiceProvider.h"

Syntax

TSharedPtr< IPortalService > GetService
(
    const FString & ServiceName,
    const TSharedRef< FTypeContainer > & Dependencies
)

Remarks

Get a service instance of the specified type.

Returns

The service instance, or nullptr if unavailable.

Parameters

Parameter

Description

ServiceName

The name of the service type to get.

Dependencies

Optional service dependencies.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss