GPGRealTimeParticipant Class Reference

GPGRealTimeParticipant Class Reference

Overview

Represents a participant in the context of a GPGRealTimeRoom.

Public Member Functions

(int) - sendReliableData:
 Sends a reliable message to this participant.
(void) - sendUnreliableData:
 Sends an unreliable message to this participant.

Properties

BOOL canCommunicate
NSURL * avatarUrl
 The URL of the avatar image resource.
NSString * displayName
 The name to be displayed for this participant.
NSString * participantId
 The unique identifier for this participant in the context of this GPGRealTimeRoom.
BOOL isAutoMatchedPlayer
 YES if the participant was auto-matched into the room.
BOOL isLocalParticipant
 YES if this participant represents the local player.
GPGRealTimeParticipantStatus status
 The status of the participant.

Member Function Documentation

- (int) sendReliableData: (NSData *)  data

Sends a reliable message to this participant.

Parameters:
dataThe raw data to send.
Returns:
The id of the message operation, or kGPGRealTimeInvalidReliableSendId if there was an error during message transmission. The room delegate room:didSendReliableId:results: is called on success or failure of the message transmission.
- (void) sendUnreliableData: (NSData *)  data

Sends an unreliable message to this participant.

Parameters:
datathe raw data to send.

Property Documentation

- (BOOL) canCommunicate [read, assign]
Returns:
YES if the participant can communicate with the other participants currently in the room.
- (NSURL *) avatarUrl [read, copy]

The URL of the avatar image resource.

Override URL getters to include a default size.

- (NSString*) displayName [read, copy]

The name to be displayed for this participant.

- (NSString*) participantId [read, copy]

The unique identifier for this participant in the context of this GPGRealTimeRoom.

- (BOOL) isAutoMatchedPlayer [read, assign]

YES if the participant was auto-matched into the room.

- (BOOL) isLocalParticipant [read, assign]

YES if this participant represents the local player.

- (GPGRealTimeParticipantStatus) status [read, assign]

The status of the participant.

Оставить отзыв о...

Текущей странице
Play Games Services for iOS
Play Games Services for iOS