For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/lynx-devtool-native-api/lynx-base-inspector-owner/unsubscribe-message.md.
Lynx
  • 简体中文
  • unsubscribeMessage

    取消订阅指定类型的调试消息。

    此方法是 subscribeMessage 的配对操作。当你不再需要接收某种类型的消息时,应调用此方法来取消订阅。

    语法

    iOS

    LynxBaseInspectorOwnerNG.h
    - (void)unsubscribeMessage:(nonnull NSString *)type;

    Android

    LynxBaseInspectorOwnerNG.java
    void unsubscribeMessage(String type);

    Harmony

    LynxBaseInspectorOwner.ets
    unsubscribeMessage(type: string): void;

    参数说明

    • type: 要取消订阅的消息类型。

    使用示例

    请参考 subscribeMessage

    兼容性

    LCD tables only load in the browser

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。