wasabeef / Blurry

Blurry is an easy blur library for Android
Apache License 2.0
5.59k stars 604 forks source link

acync and onto after update 4.0.0 #99

Closed ifyousleep closed 4 years ago

ifyousleep commented 4 years ago

There is this code that works on version 3

Blurry.with(context) .radius(8) .sampling(8) .async { make any func } .animate(any duration) .onto(any FrameLayout)

But on version 4, I cannot use this code and cannot reproduce the actions I need. Can you help me with the update?

wasabeef commented 4 years ago

@ifyousleep

Yes, We added another async method.

Blurry.with(context)
  .radius(8)
  .sampling(8)
  .animate(any duration)
  .getAsync { bitmap ->
    layout.addView(any ImageView with using bitmap)
  }
ifyousleep commented 4 years ago

@wasabeef thanks