Skip to main content

getSelfUserInfo

Description​

info

Get the basic information of the currently logged-in user.

Function Prototype​


- (void)getSelfInfoWithOnSuccess:(OIMUserInfoCallback)onSuccess
onFailure:(OIMFailureCallback)onFailure;

Input Parameters​

None

Return Result​

Parameter NameParameter TypeDescription
onSuccessOIMUserInfoSuccess return
onFailureOIMFailureCallbackFailure return

Code Example​


[OIMManager.manager getSelfInfoWithOnSuccess:^(OIMUserInfo * _Nullable userInfo) {
} onFailure:^(NSInteger code, NSString * _Nullable msg) {
}];