Class CommandAPI

    • Constructor Detail

      • CommandAPI

        public CommandAPI​(Context context,
                          Command command)
        Generates a new object containing a command that can be executed on the given context.
        context - The context where to bind the command to.
        command - The command that should be bind on.
    • Method Detail

      • expose

        public void expose​( target)
        Exposes the native JavaScript functions on to the given target object. The functions are canExecute() and execute().
        target - The target object to bind the JavaScript functions to.