onKickedOffline
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
onKickedOffline(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.OnKickedOffline, () => {});
Return Result
Name | Type | Description |
---|---|---|
data | WSEvent | - |
Return Prototype
onKickedOffline(data: WSEvent): void;
Return Result
Name | Type | Description |
---|---|---|
data | WSEvent | - |
Example Call
import IMSDK from 'openim-uniapp-polyfill';
IMSDK.subscribe(IMSDK.IMEvents.OnKickedOffline, () => {});
Prototype
void OnKickedOffline();