mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-27 16:59:39 -05:00
TikTokLive client sevices customization
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
*/
|
||||
package io.github.jwdeveloper.tiktok.live.builder;
|
||||
|
||||
import io.github.jwdeveloper.dependance.implementation.DependanceContainerBuilder;
|
||||
import io.github.jwdeveloper.tiktok.data.settings.LiveClientSettings;
|
||||
import io.github.jwdeveloper.tiktok.listener.TikTokEventListener;
|
||||
import io.github.jwdeveloper.tiktok.live.LiveClient;
|
||||
@@ -60,15 +61,26 @@ public interface LiveClientBuilder extends EventsBuilder<LiveClientBuilder> {
|
||||
*/
|
||||
LiveClientBuilder addListener(TikTokEventListener listener);
|
||||
|
||||
|
||||
/**
|
||||
* Allows you to use own implementation of internal TikTokLive dependencies,
|
||||
* when the default implementation does not meet your needs
|
||||
*
|
||||
*
|
||||
* @param onCustomizeDependencies access to dependency container
|
||||
* @return
|
||||
*/
|
||||
LiveClientBuilder customize(Consumer<DependanceContainerBuilder> onCustomizeDependencies);
|
||||
|
||||
/**
|
||||
* Builds new instance of the LiveClient
|
||||
* @return LiveClient object
|
||||
*/
|
||||
LiveClient build();
|
||||
|
||||
/**
|
||||
*
|
||||
* @return LiveClient object and connects to TikTok live
|
||||
* Builds new instance of the LiveClient and connects to live
|
||||
* @return LiveClient object
|
||||
*/
|
||||
LiveClient buildAndConnect();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user