onKickedOffline
Description
info
Because the app administrator forces the user offline, or the user is kicked offline due to a login policy.
- iOS
- Android
- Flutter
- uni-app
- Browser/Electron/MiniProgram
- Unity
Return Prototype
Function()? onKickedOffline;
Return Prototype
- (void)onKickedOffline;
Return Prototype
public void onKickedOffline()
Return Prototype
onKickedOffline(data: WSEvent): void;
Call Example
import { getSDK } from '@openim/wasm-client-sdk';
const IMSDK = getSDK();
IMSDK.on(CbEvents.OnKickedOffline, () => {});
Return Results
| Name | Type | Description |
|---|---|---|
| data | WSEvent | - |
Return Prototype
onKickedOffline(data: WSEvent): void;
Return Results
| Name | Type | Description |
|---|---|---|
| data | WSEvent | - |
Call Example
import IMSDK from 'openim-uniapp-polyfill';
IMSDK.subscribe(IMSDK.IMEvents.OnKickedOffline, () => {});
Return Prototype
void OnKickedOffline();