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

Blur Off not working on android #3

Open
yavuzmercan opened this issue Mar 8, 2018 · 6 comments
Open

Blur Off not working on android #3

yavuzmercan opened this issue Mar 8, 2018 · 6 comments

Comments

@yavuzmercan
Copy link

No description provided.

@shiv19
Copy link
Collaborator

shiv19 commented Mar 8, 2018

can you provide more details please

@yavuzmercan
Copy link
Author

I'm doing trials in the android platform

I want to apply effects on the dimmer or direct image

by the way I use nativescript angular template

html

<Image stretch="aspectFill" id="blurMe" src="https://mymodernmet.com/wp/wp-content/uploads/2017/09/albert-dros-landscape-photography-tips-4.jpg"></Image>

typescript

turnBlurOn(args) { let kittyView = this.page.getViewById('blurMe'); this.blur.on(kittyView, 'blurMe', 25, 'dark').then((src) => { console.log('Kitty has become blurry.'); }).catch(e => { console.dir(e); }); }

turnBlurOff() { this.blur.off('blurMe'); }

@shiv19
Copy link
Collaborator

shiv19 commented Mar 8, 2018

Please read the demo in my repo
https://github.com/shiv19/nativescript-blur/blob/master/demo/app/main-view-model.ts

It shows you how to use this plugin on Android

@yavuzmercan
Copy link
Author

read the demo

blurOn is work but BlurOff not work

@shiv19
Copy link
Collaborator

shiv19 commented Mar 8, 2018

The way you are using blurOff won't work on android. see my repo. not this one.
this one has some old code. because PR hasn't been merged yet

@davecoffin
Copy link
Owner

Crap Shiva I never accepted your pull request sorry! I'll do that later.

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

3 participants