mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-27 08:49:40 -05:00
Removal of examples using Deprecated TikTokEventListener!
This commit is contained in:
@@ -38,7 +38,7 @@ import io.github.jwdeveloper.tiktok.live.LiveClient;
|
||||
* <p>- 2 parameters of (LiveClient, Class extending TikTokEvent)
|
||||
* <pre>
|
||||
* {@code
|
||||
* public static class CustomListener implements TikTokEventListener
|
||||
* public static class CustomListener
|
||||
* {
|
||||
* @TikTokEventObserver
|
||||
* public void onError(LiveClient liveClient, TikTokErrorEvent event)
|
||||
@@ -67,9 +67,7 @@ import io.github.jwdeveloper.tiktok.live.LiveClient;
|
||||
* }
|
||||
* </pre>
|
||||
*/
|
||||
//TODO I think this interface can be removed, since we are using,
|
||||
//annotation @TikTokEventHandler to check methods that are events
|
||||
@Deprecated(forRemoval = true, since = "1.8.1 (This interface is not longer needed, please remove it from your class)")
|
||||
@Deprecated(forRemoval = true, since = "1.8.1 (This interface is not longer needed, please remove it from your class) | Removing in 1.9.0")
|
||||
public interface TikTokEventListener {
|
||||
|
||||
}
|
||||
@@ -57,8 +57,7 @@ public interface LiveClientBuilder extends EventsBuilder<LiveClientBuilder> {
|
||||
LiveClientBuilder configure(Consumer<LiveClientSettings> onConfigure);
|
||||
|
||||
/**
|
||||
* Adding events listener class, its fancy way to register events without using lamda method
|
||||
* but actual method in class that implements TikTokEventListener
|
||||
* Adds events listener class, its fancy way to register events without using lamda method
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
|
||||
@@ -707,7 +707,7 @@ public static void main(String[] args) throws IOException {
|
||||
* - second must be class that extending TikTokEvent
|
||||
*/
|
||||
|
||||
public static class CustomListener implements TikTokEventListener {
|
||||
public static class CustomListener {
|
||||
|
||||
@TikTokEventObserver
|
||||
public void onLike(LiveClient liveClient, TikTokLikeEvent event) {
|
||||
|
||||
Reference in New Issue
Block a user