Skip to main content

getLoginStatus

Description

info

Get the user's login status. If this API is called while the SDK is not yet initialized, it will return -1001 (Uninitialized).

Note

Note the difference between connection status and login status. login can only be called when in the unlogged status.

Function Prototype

- (OIMLoginStatus)getLoginStatus;

Input Parameters

None

Return Result

Parameter NameParameter TypeDescription
statusOIMLoginStatusLogin status. 1: unlogged, 2: logging, 3: logged

Code Example


OIMLoginStatus status = [OIMManager.manager getLoginStatus];