FOnlineNotification

Notification object, used to send messages between systems

Windows
MacOS
Linux

References

Module

OnlineSubsystem

Header

/Engine/Plugins/Online/OnlineSubsystem/Source/Public/OnlineNotification.h

Include

#include "OnlineNotification.h"

Syntax

struct FOnlineNotification

Remarks

Notification object, used to send messages between systems

Variables

Name Description

Public variable

TSharedPtr< con...

 

FromUserId

User who sent the notification, optional.

Public variable

TSharedPtr< FJs...

 

Payload

The payload of this notification

Public variable

TSharedPtr< con...

 

ToUserId

User to deliver the notification to. Can be null for system notifications.

Public variable

FString

 

TypeStr

A string defining the type of this notification, used to determine how to parse the payload

Constructors

Name Description

Public function

FOnlineNotification()

Default constructor

Public function

FOnlineNotification

(
    const FString& InTypeStr,
    const TSharedPtr< FJsonValue >& In...,
    TSharedPtr< const FUniqueNetId > In...,
    TSharedPtr< const FUniqueNetId > In...
)

Constructor from type and FJsonValue System message unless ToUserId is specified; FromUserId optional

Public function

FOnlineNotification

(
    const FString& InTypeStr,
    const TSharedPtr< FJsonObject >& I...,
    TSharedPtr< const FUniqueNetId > In...,
    TSharedPtr< const FUniqueNetId > In...
)

Constructor from type and FJsonObject System message unless ToUserId is specified; FromUserId optional

Functions

Name Description

Public function Const

bool

 

ParsePayload

(
    FStruct& PayloadOut
)

Parse a payload and assume there is a static const TypeStr member to use

Public function Const

bool

 

ParsePayload

(
    UStruct* StructType,
    void* StructPtr
)

Parse out Payload into the provided UStruct

Public function

void

 

SetTypeFromPayload()

Set up the type string for the case where the type is embedded in the payload

Operators

Name Description

Public function Const

 

operator bool()

Does this notification have a valid payload?

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