PlayerIO

The fastest way to build online games without breaking a sweat.

Objective-C Client Reference

Multiplayer  class documentationClass PIONotification

Language: Objective-C

An IOS Notification. You must specify either the "alert" key or the "badgeCount" using the setWithKey method to create a valid notification object.

Properties

 
data
The notification data
endpointType
The type of notification endpoint that will receive this notification
recipientUserId
The intended recipient (userId) of this notification

Methods

 
- (id)
initWithRecipientUserId:endpointType:
Create a new notification intended for the specified recipient if he/she has registered a notification endpoint of the given type.
- (PIONotification*)
setWithKey:value:
Add a specific argument to the Data of this notification

@property (nonatomic) NSDictionary * data

The notification data

@property (nonatomic) NSString * endpointType

The type of notification endpoint that will receive this notification

@property (nonatomic) NSString * recipientUserId

The intended recipient (userId) of this notification

initWithRecipientUserId:endpointType:

Create a new notification intended for the specified recipient if he/she has registered a notification endpoint of the given type.

Arguments

NSString* recipientUserId
The intended recipient userId of this notification.
NSString* endpointType
The endpoint type that this notification is intended for.

Return Value

id

setWithKey:value:

Add a specific argument to the Data of this notification

Arguments

NSString* key
The key to add
NSString* value
The value to add

Return Value

PIONotification* This instance after modifications made by set