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 { getSDK, CbEvents } from '@openim/client-sdk';
// const IMSDK = getSDK();
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();