Navigation
API > API/Runtime > API/Runtime/PortalServices > API/Runtime/PortalServices/IPortalServiceLocator
Description
Get a service of the specified type.
Unlike GetService(), this method will assert if a service instance of the specified type does not exist.
| Name | GetServiceRef |
| Type | function |
| Header File | /Engine/Source/Runtime/Portal/Services/Public/IPortalServiceLocator.h |
| Include Path | #include "IPortalServiceLocator.h" |
template<typename ServiceType>
TSharedRef < ServiceType > GetServiceRef
(
const FString & ProductId
)
The service instance.
Parameters
| Name | Remarks |
|---|---|
| ServiceType | The type of service to get. |
See Also
- GetService