mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-28 01:09:40 -05:00
Breaking changes:
'Gift': changed from class to enum, so now you can handle
incoming gifts in switch
`Events`
- new:
onGiftComboFinished
- Removed:
onGiftBrodcast
- Rename:
onGiftMessage -> onGift
onRoomPinMessage -> onRoomPin
onRoomMessage -> onRoom
onLinkMessage -> onLink
onBarrageMessage -> onBarrage
onPollMessage -> onPoll
onShopMessage -> onShop
onDetectMessage -> onDetect
`GiftManager`
added:
registerGift
findById
findByName
getGifts
removed:
getActiveGifts
This commit is contained in:
@@ -51,38 +51,20 @@ Do you prefer other programming languages?
|
||||
2. Create your first chat connection
|
||||
|
||||
```java
|
||||
{{Code-Example}}
|
||||
{{code-content}}
|
||||
```
|
||||
## Configuration
|
||||
## Events
|
||||
|
||||
{{events-content}}
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
```java
|
||||
{{Configuration-Example}}
|
||||
```
|
||||
## Listener Example
|
||||
|
||||
```java
|
||||
{{Listener-Example}}
|
||||
{{listener-content}}
|
||||
```
|
||||
|
||||
## Methods
|
||||
A `client (LiveClient)` object contains the following methods.
|
||||
|
||||
|
||||
|
||||
| Method Name | Description |
|
||||
|---------------------| ----------- |
|
||||
| connect | Connects to the live stream. |
|
||||
| disconnect | Disconnects the connection. |
|
||||
| getGiftManager | Gets the meta informations about all gifts. |
|
||||
| getRoomInfo | Gets the current room info from TikTok API including streamer info, room status and statistics. |
|
||||
| getListenersManager | Gets and manage TikTokEventListeners |
|
||||
## Events
|
||||
|
||||
A `TikTokLive` object has the following events
|
||||
|
||||
{{Events}}
|
||||
|
||||
<br><br>
|
||||
|
||||
## Contributing
|
||||
Your improvements are welcome! Feel free to open an <a href="https://github.com/jwdeveloper/TikTok-Live-Java/issues">issue</a> or <a href="https://github.com/jwdeveloper/TikTok-Live-Java/pulls">pull request</a>.
|
||||
|
||||
Reference in New Issue
Block a user