Skip to main content
Version: 1.53.x

Account Properties

Usageโ€‹

โ€ŒTo get account properties you can use protocol P101XPDelegate and subscribe to the method p101xpOnGetAccount(result: P101XPAccountData?, error: NSError?)

- (void)p101xpOnGetAccountWithResult:(P101XPAccountData *)result error:(NSError *)error  {
if (error != nil) {
NSLog(@"OnGetAccountResult failure with error: %@", error.localizedDescription);
} else {
NSLog(@"OnGetAccountResult success username: %@", result.displayName);
}
}


โ€ŒThe object properties has the next keys and values:

KeyValueDescription
userGameIdInt64The user game id
portalIdInt64The portal id
displayNameStringThe name user
photoUrlStringThe photo url for user
isGuestYES/NO (BOOL)The user is guest (yes / no)