PICO Unreal Platform SDK
FPicoNotificationInterface Class Reference

FPicoNotificationInterface class. More...

#include <Pico_Notification.h>

Public Member Functions

bool GetRoomInviteNotifications (int PageIdx, int PageSize, FNotificationRoomInviteNotifications OnRoomInviteNotificationsCallback)
 Gets a list of all pending room invites for your app. For example, notifications that may have been sent before the user launches your app. More...
 
bool MarkAsRead (const FString &NotificationID, FNotificationMarkAsRead OnMarkAsReadCallback)
 Marks a notification as read. More...
 

Detailed Description

Member Function Documentation

◆ GetRoomInviteNotifications()

bool GetRoomInviteNotifications ( int  PageIdx,
int  PageSize,
FNotificationRoomInviteNotifications  OnRoomInviteNotificationsCallback 
)

Gets a list of all pending room invites for your app. For example, notifications that may have been sent before the user launches your app.

Parameters
PageIdxDefines which page of pending room invites to return. The first page index is 0.
PageSizeDefines the number of pending room invites returned on each page.
OnRoomInviteNotificationsCallbackWill be executed when the request has been completed.
Delegate will contain the requested object class (bool, bIsError, int, ErrorCode, const FString&, ErrorMessage, UPico_RoomInviteNotificationArray *, RoomInviteNotificationArray).
Returns
Bool:
  • true: success
  • false: failure


◆ MarkAsRead()

bool MarkAsRead ( const FString &  NotificationID,
FNotificationMarkAsRead  OnMarkAsReadCallback 
)

Marks a notification as read.

Parameters
NotificationIDThe ID of the notificaiton to mark.
OnMarkAsReadCallbackWill be executed when the request has been completed.
Delegate will contain the requested object class (bool, bIsError, int, ErrorCode, const FString&, ErrorMessage).
Returns
Bool:
  • true: success
  • false: failure