Objective-C Client Reference
Class PIOOneScore
Language: Objective-C
The YGN OneScore service
Properties | |||
---|---|---|---|
|
|||
|
|||
|
|||
Methods | |||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (NSArray*) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
@property (nonatomic) float_t percentile
The percentile compared to all other players. A value from 0 -> 100. A value of 30.0 means you are in the bottom 30% of players. A value of 100 means you are in the top 100% with other players.
@property (nonatomic) int32_t score
OneScore value
@property (nonatomic) int32_t topRank
The absolute ranking of this player, if they are one of the top 1000 players. 0 otherwise.
addWithScoreValue:
Sets OneScore for the user.
Arguments
int32_t | scoreValue |
addWithScoreValue:successBlock:
Sets OneScore for the user.
Arguments
int32_t | scoreValue |
void(^)(PIOOneScoreValue*oneScoreValue) | successBlock |
addWithScoreValue:successBlock:errorBlock:
Sets OneScore for the user.
Arguments
int32_t | scoreValue |
void(^)(PIOOneScoreValue*oneScoreValue) | successBlock |
void(^)(PIOError*error) | errorBlock |
loadWithUserIds:
Loads OneScore for multiple users.
Arguments
NSArray* | userIds |
Return Value
NSArray* | |
loadWithUserIds:successBlock:
Loads OneScore for multiple users.
Arguments
NSArray* | userIds |
void(^)(NSArray*oneScoreValues) | successBlock |
loadWithUserIds:successBlock:errorBlock:
Loads OneScore for multiple users.
Arguments
NSArray* | userIds |
void(^)(NSArray*oneScoreValues) | successBlock |
void(^)(PIOError*error) | errorBlock |
refresh
Refresh OneScore for the user.
refreshWithSuccessBlock:
Refresh OneScore for the user.
Arguments
void(^)(PIOOneScoreValue*oneScoreValue) | successBlock |
refreshWithSuccessBlock:errorBlock:
Refresh OneScore for the user.
Arguments
void(^)(PIOOneScoreValue*oneScoreValue) | successBlock |
void(^)(PIOError*error) | errorBlock |
setWithScoreValue:
Sets OneScore for the user.
Arguments
int32_t | scoreValue |
setWithScoreValue:successBlock:
Sets OneScore for the user.
Arguments
int | scoreValue |
void(^)(PIOOneScoreValue*oneScoreValue) | successBlock |
setWithScoreValue:successBlock:errorBlock:
Sets OneScore for the user.
Arguments
int | scoreValue |
void(^)(PIOOneScoreValue*oneScoreValue) | successBlock |
void(^)(PIOError*error) | errorBlock |