UNPKG

para-bridge-demo

Version:

a bridge api for js-ios/andriod rest

22 lines (19 loc) 583 B
import { BridgePlugin } from '../bridge'; export class UserLogout<K> extends BridgePlugin<void, K> { protected get ntvPluginName() { return '_ntv_user_user_logout'; } protected get availableMinVersion() { return '1.0.0'; } protected bridgeExecChrome(pluginName?: string | undefined): void { // 可针对不同运行环境实现特定的调用逻辑来MOCK,弥补平台差异性. throw new Error('UserLogout() 未针对当前环境实现'); } } /** * 用户注销登陆,无回调 */ export const userLogout = () => { new UserLogout().invoke(); }