-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional for plugin functions #142
Comments
Yes, standard interfaces are fully available to you, and you can call Didn't really think of a way to obtain configuration directory at runtime, I will add a method for that in the next version, you can just hardcode it at the moment. |
oh okay okay thanks, and, can you make Error Messagebox for Plugins please |
example, if user didnt put anything at user input, it will show error messagebox on android, or when user press start button, the app wil show error message |
oh yeah, btw, i mean like file user interface, so user can select the file |
You can throw an exception and its message will be shown to user
I intended this as a tool primarily for an advanced users, but I'll consider adding such feature. |
Sorry, can you make the example code? Thanks |
public class MyPlugin extends PowerTunnelPlugin {
@Override
public void onProxyInitialization(@NotNull ProxyServer proxy) {
// ...
if (somethingIsWrong) {
throw new Exception("Error message");
}
// ...
}
} |
ohh okay okay, and it will show the dialog error? |
okay okay thanks |
Is it possible to make file reader on Plugin? is it possible, how do i make file reader on Plugin?
The text was updated successfully, but these errors were encountered: