- Fix onStarted is called twice. (#120)
- Update Kotlin to 1.4.31.
- Accept ColorInt as background color. (#108)
- Update dependencies.
- Provide overloaded constructors for
Shape
andEffect
implementations. (#87) - Throw an Exception when you add an empty target to Spotlight. (#84)
- Fix anchor is a bit off when using custom container.
- Fix issue where SpotlightView is leaked via an animation listener. (#93)
- Fix behavior of RippleEffect.
- Start Effect after Target is drawn.
- Fix internal logic.
- Require kotlin 1.3.50.
- Remove SimpleTarget.
- Remove
isClosedOnTouchedOutside
attribute. - Add
Spotlight.next()
,Spotlight.previous()
,Spotlight.show()
functionality.- next: show the next target after closing the current target if exists.
- previous: show the previous target after closing the current target if exists.
- show: show the target at specified index. (e.g. show(1)).
- Add
setContainer
to set a custom container to hold a SpotlightView. The default is DecoderView. - Add Effect feature.
RippleEffect
andFlickerEffect
are provided by default.val target = Target.Builder() .setAnchor(100f, 100f) .setShape(Circle(150f)) .setEffect(FlickerEffect(200f, rgb(124, 255, 90))) .build()
Thank you for the feature requests from @OliverCulleyDeLange, @hamz4k.
- Add Rounded rectangle shape.
- Add custom shapes functionality.
- Add skip feature.
- Add click handling listener.
- Add Overlay color attribute.
- Initial Release.