Skip to content

lua 脚本里可以直接调用 java 函数吗 #31

Open

Description

@GeneBlue

你好,作者,我想在 lua 脚本中直接调用 java 函数,有什么比较方便的方法吗

Activity

  1. ichenhe commented on Jun 4, 2020

    @ichenhe
    Owner

    可以,需要将 java 函数包装为一个类注入进去,请参见 README Lua 调用 Java 函数 章节。

  2. GeneBlue commented on Jun 5, 2020

    @GeneBlue
    Author

    这种 reg 需要事先在 java 代码中写好,不是很灵活

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions