Skip to content

LottieView

Provides a simple way to display vector animations made with Adobe After Effects.

Declaration

namespace bdn::ui::lottie {
    class View : public ui::View
}

Example

#include <bdn/ui/lottie/View.h>

using namespace bdn::ui;
// ...
auto lottieView  = std::make_shared<lottie::View>();
lottieView->url = "resource://main/images/animation.json";
lottieView->running = true;
lottieView->loop = true;

Properties

  • Property<std::string> url

    URL pointing to the animation file. (Please refer to Using Resources for more information on how to bundle resources with your app.)

  • Property<bool> running

    Whether the animation is running. Set this to true to start the animation or to false to stop it.

  • Property<bool> loop

    Whether the animation should repeat in a loop. Set this to true if you want a looping animation.

Relationships

Inherits from View.

Source

View.h