onKickedOffine
Feature Introduction
info
This occurs when the APP administrator forces a user offline, or due to login policies causing the user to be kicked offline.
- iOS
- Android
- Flutter
- uni-app
- Browser/Electron/MiniProgram
- Unity
Return Prototype
Function()? onKickedOffline;
Return Prototype
- (void)onKickedOffline;
Return Prototype
public void onKickedOffline()
Return Prototype
onKickedOffine(data: WSEvent): void;
Example Call
import { getSDK, CbEvents } from '@openim/wasm-client-sdk';
// or
// import { OpenIMSDK, CbEvents } from 'open-im-sdk';
// const IMSDK = new OpenIMSDK();
const IMSDK = getSDK();
IMSDK.on(CbEvents.OnKickedOffine, () => {});
Return Result
Name | Type | Description |
---|---|---|
data | WSEvent | - |
Return Prototype
onKickedOffine(data: WSEvent): void;
Return Result
Name | Type | Description |
---|---|---|
data | WSEvent | - |
Example Call
import IMSDK from 'openim-uniapp-polyfill';
IMSDK.subscribe(IMSDK.IMEvents.OnKickedOffine, () => {});
Prototype
void OnKickedOffline();