How to use Steam Leaderboards in Unreal

I am writing a Steam client wrapper for our project. After setting everything up the Steam overlay is shown fine, and I can for example get the Steam player ID via


IOnlineSubsystem* ion = IOnlineSubsystem::Get(FName("Steam"));
TSharedPtr<const FUniqueNetId> steamPlayerId = ion->GetIdentityInterface()->GetUniquePlayerId(0);

Now I want to work with a Steam Leaderboard, so I tried the following code:


ion->GetLeaderboardsInterface()->

However, now IntelliSense does not offer any method to call, nor can I manually call any method of the leaderboards interface.

So, how is one supposed to use the Steam Leaderboards API in C++?

Ok, I found the problem. For the records, one needs to include the following for the code shown in the OP above to work:


#include "Runtime/Online/OnlineSubsystem/Public/Interfaces/OnlineLeaderboardInterface.h"