V2TimSDKListener

Introduction

The listener registered for the SDK-related events.

Parameter introduction

onConnectFailed

  • Parameter type : ErrorCallback

  • Supported Platform: All

  • Parameter description : The SDK failed to connect to the Tencent Server.

onConnectSuccess

  • Parameter type : VoidCallback

  • Supported Platform: All

  • Parameter description : The SDK is successfully connected to the Tencent Server.

onConnecting

  • Parameter type : VoidCallback

  • Supported Platform: All

  • Parameter description : The SDK is connecting to the Tencent Server.

onKickedOffline

  • Parameter type : VoidCallback

  • Supported Platform: All

  • Parameter description : The current user is kicked offline: the SDK notifies the user on the UI, and the user can choose to call the login() function of V2TIMManager to log in again.

onSelfInfoUpdated

  • Parameter type : V2TimUserFullInfoCallback

  • Supported Platform: All

  • Parameter description : The profile of the current user was updated.

onUserSigExpired

  • Parameter type : VoidCallback

  • Supported Platform: All

  • Parameter description : The ticket expires when the user is online: the user needs to generate a new userSig and call the login() function of V2TIMManager to log in again.

onUserStatusChanged

  • Parameter type : OnUserStatusChanged

  • Supported Platform: All

  • Parameter description : User status changed notification.

You will receive this callback in the following cases:

  1. The status (including status and custom status) changed of the subscribed user.

  2. The status (including status and custom status) changed of the friends. (Need to turn on the switch on console).

  3. The custom status changed of yourself.

results matching ""

    No results matching ""