Objective-C Client Reference
Class PIOPlayerInsight
Language: Objective-C
PlayerInsight
Properties | |||
---|---|---|---|
|
|||
Methods | |||
- (NSString*) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
||
- (void) |
|
@property (nonatomic) int playersOnline
The numbers of players online in the entire game
getSegmentWithSegmentGroup:
Gets the segment value for the given segment group. For instance, if the player is tagged in the segment 'source:facebook' the method will return 'facebook' when called with 'source' as the argument.
Arguments
NSString* | segmentGroup |
Return Value
NSString* | |
refresh
Refresh the players online counter and the current segments of the user.
refreshWithSuccessBlock:
Refresh the players online counter and the current segments of the user.
Arguments
void(^)() | successBlock |
refreshWithSuccessBlock:errorBlock:
Refresh the players online counter and the current segments of the user.
Arguments
void(^)() | successBlock |
void(^)(PIOError*error) | errorBlock |
sessionKeepAlive
Every API call performs a session keep-alive implicitly, but if there will be long periods of inactivity this method can be used to ensure that the session that was started through Authenticate does not die out.
sessionKeepAliveWithSuccessBlock:
Every API call performs a session keep-alive implicitly, but if there will be long periods of inactivity this method can be used to ensure that the session that was started through Authenticate does not die out.
Arguments
void(^)() | successBlock |
sessionKeepAliveWithSuccessBlock:errorBlock:
Every API call performs a session keep-alive implicitly, but if there will be long periods of inactivity this method can be used to ensure that the session that was started through Authenticate does not die out.
Arguments
void(^)() | successBlock |
void(^)(PIOError*error) | errorBlock |
setSegmentsWithSegments:
Assign custom PlayerInsight segments to the current user
Arguments
NSMutableArray* | segments |
setSegmentsWithSegments:successBlock:
Assign custom PlayerInsight segments to the current user
Arguments
NSMutableArray* | segments |
void(^)() | successBlock |
setSegmentsWithSegments:successBlock:errorBlock:
Assign custom PlayerInsight segments to the current user
Arguments
NSMutableArray* | segments |
void(^)() | successBlock |
void(^)(PIOError*error) | errorBlock |
trackEventWithEventType:value:
Track the given event for the current user in PlayerInsight
Arguments
NSString* | eventType |
int | value |
trackEventWithEventType:value:successBlock:
Track the given event for the current user in PlayerInsight
Arguments
NSString* | eventType |
int | value |
void(^)() | successBlock |
trackEventWithEventType:value:successBlock:errorBlock:
Track the given event for the current user in PlayerInsight
Arguments
NSString* | eventType |
int | value |
void(^)() | successBlock |
void(^)(PIOError*error) | errorBlock |
trackExternalPaymentWithCurrency:amount:
Track a completed payment in PlayerInsight from an external non-PayVault payment method.
Arguments
NSString* | currency |
int | amount |
trackExternalPaymentWithCurrency:amount:successBlock:
Track a completed payment in PlayerInsight from an external non-PayVault payment method.
Arguments
NSString* | currency |
int | amount |
void(^)() | successBlock |
trackExternalPaymentWithCurrency:amount:successBlock:errorBlock:
Track a completed payment in PlayerInsight from an external non-PayVault payment method.
Arguments
NSString* | currency |
int | amount |
void(^)() | successBlock |
void(^)(PIOError*error) | errorBlock |
trackInvitedByWithInvitingUserId:invitationChannel:
Tell PlayerInsight who invited the current user in this session. Used for viral analysis.
Arguments
NSString* | invitingUserid |
NSString* | invitationChannel |
trackInvitedByWithInvitingUserId:invitationChannel:successBlock:
Tell PlayerInsight who invited the current user in this session. Used for viral analysis.
Arguments
NSString* | invitingUserid |
NSString* | invitationChannel |
void(^)() | successBlock |
trackInvitedByWithInvitingUserId:invitationChannel:successBlock:errorBlock:
Tell PlayerInsight who invited the current user in this session. Used for viral analysis.
Arguments
NSString* | invitingUserid |
NSString* | invitationChannel |
void(^)() | successBlock |
void(^)(PIOError*error) | errorBlock |