Skip to content
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

I have a problem with @Override #7

Open
KasimovAskar opened this issue Jul 25, 2020 · 1 comment
Open

I have a problem with @Override #7

KasimovAskar opened this issue Jul 25, 2020 · 1 comment

Comments

@KasimovAskar
Copy link

@OverRide
public void callbackWithReturnValue(Boolean result) {
String message = result ? "Success" : "Failed!";
Toast.makeText(this,message,Toast.LENGTH_SHORT).show();
}

@Override
public void onProgressUpdate(Boolean... booleans) {
    Toast.makeText(this, booleans[0] ? "We started writing" : "We could not write!",Toast.LENGTH_SHORT).show();
}

@Override
public void onError(Exception e) {
    Toast.makeText(this,e.getMessage(),Toast.LENGTH_SHORT).show();
}

In this code @OverRide doesnt work (my IDE doesnt let me do it)

@vangeb
Copy link
Contributor

vangeb commented Aug 11, 2020

You have to make your activity implement AsyncUiCallback or use an instance of AsyncUiCallback and override the methods in there. You can find an example of that in the implementation app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants