mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-28 01:09:40 -05:00
Improvement of Listener
This commit is contained in:
@@ -28,11 +28,15 @@ import java.lang.annotation.RetentionPolicy;
|
|||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
public @interface TikTokEventObserver {
|
public @interface TikTokEventObserver {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* When more than one method listen for certain Even, you can specify the method priority
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
Priority priority() default Priority.NORMAL;
|
Priority priority() default Priority.NORMAL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* when true, action is invoked on the another thread
|
* When true, action is invoked on the another thread
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
boolean async();
|
boolean async() default false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user