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

Dismiss the KPProgressHUD Programatically #16

Closed
MuthuEphron opened this issue Jun 7, 2016 · 1 comment
Closed

Dismiss the KPProgressHUD Programatically #16

MuthuEphron opened this issue Jun 7, 2016 · 1 comment

Comments

@MuthuEphron
Copy link

MuthuEphron commented Jun 7, 2016

Can't dismiss the KPProgressHUD in my application Please Help me...?

KProgressHUD.create(SearchCompany.this).setStyle(KProgressHUD.Style.SPIN_INDETERMINATE) .setLabel("Please Wait").setCancellable(true).show();

@tuanna-hsp
Copy link
Contributor

tuanna-hsp commented Jun 13, 2016

You can just save the HUD reference and call dismiss() on it later

KProgressHUD hud = KProgressHUD.create(SearchCompany.this).setStyle(KProgressHUD.Style.SPIN_INDETERMINATE) .setLabel("Please Wait").setCancellable(true);
hud.show();
hud.dismiss();

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