yshrsmz/KeyboardVisibilityEvent

support sdk 9(add something like ButterKnife's unbinder)

Closed this issue · 11 comments

Currently the library use ActivityLifecycleCallbacks to auto-remove event upon Activity's onDestroy.

but it would be great if we can support sdk 9

maybe ButterKnife style unbinder work?

@yshrsmz So, will the method to add listener will remain same? Only change is that the register method will return something that can be used to deregister?

@anoop44 yes, what you said is exactly what I think.
And unregister logic using AativityLifecycleCallbacks should be dropped in favor of this feature.

@yshrsmz Will try to come up something of that sort, just to clarify, do you expect that someone might need multiple listeners?

I think multiple listeners will be needed if someone tries to register listeners from Conductor's controllers, right?

but maybe not needed for initial implementation 😉

since sdk 9 is really old, maybe we should recommend users to upgrade sdk version, and keep current min sdk(which is 14)

closed by #18

Hi,

When I can expect a release for #18 ?

yep, I'm currently working on the release.
sorry to be late

released as v2.1.0