Skip to main content

getSelfUserInfo

Feature Introduction

Description

Retrieve the logged-in userID, nickname, and avatar.

Function Prototype


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

Input Parameters

None

Return Value

Parameter NameParameter TypeDescription
onSuccessOIMUserInfoSuccessful return
onFailureOIMFailureCallbackFailed return

Code Example


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