st-bridge
v0.0.12
Published
js native bridge
Downloads
14
Readme
介绍
js与Hashii App通信,支持typescript。
使用
npm install st-bridge or yarn add st-bridge
import { stbridge } from 'st-bridge'
方法参数
isiOS: boolean
isAndroid: boolean
JSBridgeException(message: string)
uuid (len: number, radix: number): string
doAction (methodName: string, params?: any, cb?: any)
doActionHandlerFromNative (callbackId: any, responseObject: any): void
closeWindow (): void
isHashii (): PromiseResult
isWeChat (): boolean
hashiiAppVersion (): string