mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-27 08:49:40 -05:00
Update collaboration.md
This commit is contained in:
@@ -165,7 +165,7 @@ from TikTok.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Next step is to open `TikTokLiveClientBuilder` and method for handling our new event
|
Next step is to open `TikTokLiveClientBuilder` and add method for handling our new event
|
||||||
|
|
||||||
``` java
|
``` java
|
||||||
|
|
||||||
@@ -179,8 +179,8 @@ Next step is to open `TikTokLiveClientBuilder` and method for handling our new e
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
To make this method visible from `TikTokLive.newClient("asds").onCustomEvent()` we
|
To make `onCustomEvent` method visible from `TikTokLive.newClient("asds").onCustomEvent()` we
|
||||||
need to also add it to interface `EventsBuilder`
|
need to also include it to interface `EventsBuilder`
|
||||||
|
|
||||||
``` java
|
``` java
|
||||||
T onCustomEvent(EventConsumer<CustomEvent> event);
|
T onCustomEvent(EventConsumer<CustomEvent> event);
|
||||||
@@ -189,6 +189,12 @@ need to also add it to interface `EventsBuilder`
|
|||||||

|

|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Finally we are good to go, out event has been included!
|
Finally we are good to go, out event has been included!
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
Reference in New Issue
Block a user