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

Add callback to get notified of particle system changes #10

Merged
merged 1 commit into from
Jun 2, 2017

Conversation

DanielMartinus
Copy link
Owner

@DanielMartinus DanielMartinus commented May 31, 2017

OnParticleSystemUpdateListener will become available when merged.

Implementation

viewKonfetti.onParticleSystemUpdateListener = object : OnParticleSystemUpdateListener {
    override fun onParticleSystemStarted(view: KonfettiView, system: ParticleSystem, activeSystems: Int) {
        // Particle system started
    }

    override fun onParticleSystemEnded(view: KonfettiView, system: ParticleSystem, activeSystems: Int) {
        // Particle system ended
    }
}

@DanielMartinus DanielMartinus modified the milestone: 1.0.1 May 31, 2017
@DanielMartinus DanielMartinus merged commit c277979 into master Jun 2, 2017
@DanielMartinus DanielMartinus deleted the improvement/add_systems_callback branch June 2, 2017 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant