This function is part of the CustomInvites Interface.
Register to receive notifications when a Custom Invite for any logged in local users is received
must call EOS_CustomInvites_RemoveNotifyCustomInviteReceived to remove the notification
Return Value
handle representing the registered callback
Parameters
CustomInvites.CustomInvitesInterface.AddNotifyCustomInviteReceived
Parameter Type And Name
|
Usage Information
|
AddNotifyCustomInviteReceivedOptions options
|
Structure containing information about the request.
|
object clientData
|
Arbitrary data that is passed back to you in the CompletionDelegate.
|
OnCustomInviteReceivedCallback notificationFn
|
A callback that is fired when a Custom Invite is received.
|
This function enables your callback (the NotificationFn
parameter) to respond to events that happen on the back-end service. Remember to remove your callback function when it is no longer needed.
Because this function is asynchronous, it employs a callback of type CustomInvites.OnCustomInviteReceivedCallback to report the results of its operation. See the CustomInvites.OnCustomInviteReceivedCallbackInfo page for more details, or check the Callback Data section below.
Function prototype definition for notifications that comes from {CustomInvitesInterface.AddNotifyCustomInviteReceived}
Callback Parameters
CustomInvites.OnCustomInviteReceivedCallback
Parameter Type And Name
|
Usage Information
|
OnCustomInviteReceivedCallbackInfo data
|
A EOS_CustomInvites_OnCustomInviteReceivedCallbackInfo containing the output information and result
|
Callback Data
The EOS SDK passes the following data structure to the callback function:
CustomInvites.OnCustomInviteReceivedCallbackInfo
Property
|
Value
|
object ClientData
|
Context that was passed into EOS_CustomInvites_AddNotifyCustomInviteReceived
|
ProductUserId TargetUserId
|
User that sent this custom invite
|
ProductUserId LocalUserId
|
Recipient Local user id
|
Utf8String CustomInviteId
|
Id of the received Custom Invite
|
Utf8String Payload
|
Payload of the received Custom Invite
|
For more information, see the CustomInvites.OnCustomInviteReceivedCallbackInfo page.