Sets callback as a global callback to be called when the user activates a URL link in the dialog.
The optional argument data can be passed to provide data for the callback function.
这个方法只能被静态调用。