#include <OnlinePresenceInterfaceAccelByte.h>
Public Member Functions | |
| FOnlinePresenceAccelByte (FOnlineSubsystemAccelByte *InSubsystem) | |
| DEFINE_ONLINE_DELEGATE_TWO_PARAM (OnBulkQueryPresenceComplete, const bool, const FUserIDPresenceMap &) | |
| virtual void | SetPresence (const FUniqueNetId &User, const FOnlineUserPresenceStatus &Status, const FOnPresenceTaskCompleteDelegate &Delegate=FOnPresenceTaskCompleteDelegate()) override |
| virtual void | QueryPresence (const FUniqueNetId &User, const FOnPresenceTaskCompleteDelegate &Delegate=FOnPresenceTaskCompleteDelegate()) override |
| virtual EOnlineCachedResult::Type | GetCachedPresence (const FUniqueNetId &User, TSharedPtr< FOnlineUserPresence > &OutPresence) override |
| virtual EOnlineCachedResult::Type | GetCachedPresenceForApp (const FUniqueNetId &LocalUserId, const FUniqueNetId &User, const FString &AppId, TSharedPtr< FOnlineUserPresence > &OutPresence) override |
| virtual void | PlatformQueryPresence (const FUniqueNetId &User, const FOnPresenceTaskCompleteDelegate &Delegate=FOnPresenceTaskCompleteDelegate()) |
| virtual EOnlineCachedResult::Type | GetPlatformCachedPresence (const FUniqueNetId &User, TSharedPtr< FOnlineUserPresence > &OutPresence) |
| virtual void | BulkQueryPresence (const FUniqueNetId &LocalUserId, const TArray< FUniqueNetIdRef > &UserIds) |
| TSharedRef< FOnlineUserPresenceAccelByte > | FindOrCreatePresence (const TSharedRef< const FUniqueNetIdAccelByteUser > &UserId) |
| TMap< FString, TSharedRef< FOnlineUserPresenceAccelByte > > | GetCachedPresence () const |
| void | UpdatePresenceCache (const TMap< FString, TSharedRef< FOnlineUserPresenceAccelByte > > &UpdatedPresence) |
| void | UpdatePresenceCache (const FString &UserID, const TSharedRef< FOnlineUserPresenceAccelByte > &Presence) |
Static Public Member Functions | |
| static bool | GetFromSubsystem (const IOnlineSubsystem *Subsystem, TSharedPtr< FOnlinePresenceAccelByte, ESPMode::ThreadSafe > &OutInterfaceInstance) |
| static bool | GetFromWorld (const UWorld *World, TSharedPtr< FOnlinePresenceAccelByte, ESPMode::ThreadSafe > &OutInterfaceInstance) |
Public Attributes | |
| PACKAGE_SCOPE | : virtual void RegisterRealTimeLobbyDelegates(int32 LocalUserNum) |
Protected Member Functions | |
| FOnlinePresenceAccelByte () | |
| IOnlinePresencePtr | GetPlatformOnlinePresenceInterface () const |
| void | OnFriendStatusChangedNotificationReceived (const FAccelByteModelsUsersPresenceNotice &Notification, int32 LocalUserNum) |
Protected Attributes | |
| FOnlineSubsystemAccelByteWPtr | AccelByteSubsystem = nullptr |
Implementation of the IOnlinePresence interface using AccelByte services.
| FOnlinePresenceAccelByte::FOnlinePresenceAccelByte | ( | FOnlineSubsystemAccelByte * | InSubsystem | ) |
Constructor that is invoked by the Subsystem instance to create a presence interface instance
|
inlineprotected |
Hidden default constructor, the constructor that takes in a subsystem instance should be used instead.
|
virtual |
Bulk query user presences.
| LocalUserId | LocalUserId of user making the call. |
| UserIds | UserIds to query the presence. |
| TSharedRef< FOnlineUserPresenceAccelByte > FOnlinePresenceAccelByte::FindOrCreatePresence | ( | const TSharedRef< const FUniqueNetIdAccelByteUser > & | UserId | ) |
Used to update cached Presence
| TMap< FString, TSharedRef< FOnlineUserPresenceAccelByte > > FOnlinePresenceAccelByte::GetCachedPresence | ( | ) | const |
Getter function for cached user presence mapped by userId
|
static |
Convenience method to get an instance of this interface from the subsystem passed in.
| Subsystem | Subsystem instance that we wish to get this interface from |
| OutInterfaceInstance | Instance of the interface that we got from the subsystem, or nullptr if not found |
|
static |
Convenience method to get an instance of this interface from the subsystem associated with the world passed in.
| World | World instance that we wish to get the interface from |
| OutInterfaceInstance | Instance of the interface that we got from the subsystem, or nullptr if not found |
|
protected |
Delegate handler for when a friend change their presence status
| void FOnlinePresenceAccelByte::UpdatePresenceCache | ( | const FString & | UserID, |
| const TSharedRef< FOnlineUserPresenceAccelByte > & | Presence ) |
Add or Update cached presence
| void FOnlinePresenceAccelByte::UpdatePresenceCache | ( | const TMap< FString, TSharedRef< FOnlineUserPresenceAccelByte > > & | UpdatedPresence | ) |
Add or Update cached presence
|
protected |
Instance of the subsystem that created this interface