casvanluijtelaar / paged_vertical_calendar

A simple paginated framework for implementing calendar based interfaces.
Apache License 2.0
39 stars 33 forks source link

How to get current visible month and year without taping a day for vertical paged calendar? #26

Closed deepatavy closed 2 years ago

deepatavy commented 2 years ago

I need to redirect users to some other screen and that other screen requires the currently visible month. Do we have any callback or any variable which contains a value for the currently visible month and year? Thanks.

onMonthLoaded provides value for the first time only: It serves its own purpose monthBuilder gives nearby value for the visible month: As it gets called whenever month view is build.

Need to implement some logic to get an accurate visible month. Can be a feature request!

Thanks in advance.

casvanluijtelaar commented 2 years ago

there is the the onDayPressed callback which provides you with the date, is it an onMonthPressed callback you are looking for? if it's really just a "notify me of the month in the center of the screen" thing, that's probably beyond the scope of this package, but it wouldn't be too hard to implement yourself based on some elaboration in https://github.com/casvanluijtelaar/paged_vertical_calendar/issues/2

deepatavy commented 2 years ago

Yes you got it right. "notify me of the month in the center of the screen" Working on it. Thanks.