From 290a4970fd9cfff7afd237d138aab678e7e395ce Mon Sep 17 00:00:00 2001 From: "jacek.wolniewicz" Date: Wed, 3 Jul 2024 22:29:11 +0200 Subject: [PATCH] Improvement of Listener --- .../tiktok/annotations/TikTokEventObserver.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/API/src/main/java/io/github/jwdeveloper/tiktok/annotations/TikTokEventObserver.java b/API/src/main/java/io/github/jwdeveloper/tiktok/annotations/TikTokEventObserver.java index a029b37..7daee1b 100644 --- a/API/src/main/java/io/github/jwdeveloper/tiktok/annotations/TikTokEventObserver.java +++ b/API/src/main/java/io/github/jwdeveloper/tiktok/annotations/TikTokEventObserver.java @@ -28,11 +28,15 @@ import java.lang.annotation.RetentionPolicy; @Retention(RetentionPolicy.RUNTIME) public @interface TikTokEventObserver { + /** + * When more than one method listen for certain Even, you can specify the method priority + * @return + */ Priority priority() default Priority.NORMAL; /** - * when true, action is invoked on the another thread + * When true, action is invoked on the another thread * @return */ - boolean async(); + boolean async() default false; }