Skip to content

Commit

Permalink
Merge branch 'main' into fix/cpp-with-foreign
Browse files Browse the repository at this point in the history
  • Loading branch information
theashraf authored Jan 29, 2024
2 parents d82ea70 + 4aeb59d commit 5ca393b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dotlottie-ffi/src/dotlottie_player.udl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace dotlottie_player {
};

[Trait]
[Trait, WithForeign]
interface Observer {
void on_load();
void on_play();
Expand All @@ -10,6 +10,7 @@ interface Observer {
void on_frame(f32 frame_no);
void on_render(f32 frame_no);
void on_loop(u32 loop_count);
void on_complete();
};

enum Mode {
Expand Down Expand Up @@ -95,4 +96,4 @@ interface DotLottiePlayer {
void clear();
void subscribe(Observer observer);
boolean is_complete();
};
};

0 comments on commit 5ca393b

Please sign in to comment.