Signature
Section titled “Signature”public class TikTokLiveMethods
Section titled “Methods”isHostNameValid
Section titled “isHostNameValid”public static boolean isHostNameValid(String hostName)Example: https://www.tiktok.com/@dostawcavideo - hostName would be ‘dostawcavideo’
Parameters
Section titled “Parameters”hostName(String) — profile name of TikTok user could be found in profile link
Returns
Section titled “Returns”boolean — true is hostName name is valid and exists, false if not
isHostNameValidAsync
Section titled “isHostNameValidAsync”public static CompletableFuture<Boolean> isHostNameValidAsync(String hostName)Example: https://www.tiktok.com/@dostawcavideo - hostName would be ‘dostawcavideo’
Parameters
Section titled “Parameters”hostName(String) — profile name of TikTok user could be found in profile link
Returns
Section titled “Returns”CompletableFuture<Boolean> — true is hostName name is valid and exists, false if not
isLiveOnline
Section titled “isLiveOnline”public static boolean isLiveOnline(String hostName)Example: https://www.tiktok.com/@dostawcavideo - hostName would be ‘dostawcavideo’
Parameters
Section titled “Parameters”hostName(String) — profile name of TikTok user could be found in profile link
Returns
Section titled “Returns”boolean — true if live is Online, false if is offline
isLiveOnlineAsync
Section titled “isLiveOnlineAsync”public static CompletableFuture<Boolean> isLiveOnlineAsync(String hostName)Example: https://www.tiktok.com/@dostawcavideo - hostName would be ‘dostawcavideo’
Parameters
Section titled “Parameters”hostName(String) — profile name of TikTok user could be found in profile link
Returns
Section titled “Returns”CompletableFuture<Boolean> — CompletableFuture of true if live is Online, false if is offline
newClient
Section titled “newClient”public static LiveClientBuilder newClient(String hostName)Example: https://www.tiktok.com/@dostawcavideo - hostName would be ‘dostawcavideo’
Parameters
Section titled “Parameters”hostName(String) — profile name of TikTok user could be found in profile link
Returns
Section titled “Returns”LiveClientBuilder — LiveClientBuilder
requests
Section titled “requests”public static LiveHttpClient requests()Use to get some data from TikTok about users are lives
Returns
Section titled “Returns”LiveHttpClient — LiveHttpClient
requests
Section titled “requests”public static LiveHttpClient requests(Consumer<LiveClientSettings> consumer)Use to get some data from TikTok about users are lives
Parameters
Section titled “Parameters”consumer(Consumer<LiveClientSettings>)
Returns
Section titled “Returns”LiveHttpClient — LiveHttpClient
Source
Section titled “Source”Client/src/main/java/io/github/jwdeveloper/tiktok/client/TikTokLive.java:32