Skip to main content

getLoginStatus

Feature Introduction

Description

Retrieve user login status. If this interface is called without initializing the SDK, it will return -1001 (Uninitialized).

Note

Note the difference between connection status and login status. Only call login when not logged in.

Function Prototype

- (OIMLoginStatus)getLoginStatus;

Input Parameters

None

Return Value

Parameter NameTypeDescription
statusOIMLoginStatusLogin status, 1: Not logged in 2: Logging in 3: Logged in

Code Example


OIMLoginStatus status = [OIMManager.manager getLoginStatus];