# onAppSharePanelShow

> 监听分享面板打开事件

### onAppSharePanelShow

> 监听分享面板打开时触发（主动和被动）

#### 请求参数

| 参数       | 类型        | 说明                 |
| ---------- | ----------- | -------------------- |
| `callback` | `()=> void` | 分享面板打开时的回调 |

#### 返回值

```js
// 返回函数，调用该函数取消监听
() => void
```

#### 示例代码

```js
import { onAppSharePanelShow } from '@kbapp/js-bridge'

const stopHandle = onAppSharePanelShow(() => {
    console.log('分享面板打开')
})

// stopHandle() 停止监听
```
