LiveLikeProfileClient

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val currentProfileFlow: StateFlow<LiveLikeProfile?>
Link copied to clipboard
Link copied to clipboard

Returns public user stream.

Functions

Link copied to clipboard
abstract fun blockProfile(profileId: String, liveLikeCallback: LiveLikeCallback<BlockedInfo>)

The function blockProfile takes a profile ID and a callback function as parameters and blocks the specified profile.

Link copied to clipboard
abstract fun cleanup()
Link copied to clipboard
abstract fun getBlockedProfileList(liveLikePagination: LiveLikePagination, liveLikeCallback: LiveLikeCallback<List<BlockedInfo>>)

The function getBlockedProfileList takes in a pagination object and a callback, and returns a list of blocked profiles.

Link copied to clipboard

Returns the cached or fetched profile, or null on failure. Coroutine cancellation propagates.

Link copied to clipboard
abstract fun getCurrentUserDetails(liveLikeCallback: LiveLikeCallback<LiveLikeProfile>)

The function getCurrentUserDetails takes a LiveLikeCallback as a parameter and retrieves the current user's details.

Link copied to clipboard
abstract fun getProfileBlockIds(liveLikeCallback: LiveLikeCallback<List<String>>)
Link copied to clipboard
abstract fun getProfileBlockInfo(profileId: String, liveLikeCallback: LiveLikeCallback<BlockedInfo>)
Link copied to clipboard
abstract fun getUserComments(request: GetUserCommentsRequestOptions, liveLikePagination: LiveLikePagination = LiveLikePagination.FIRST, liveLikeCallback: LiveLikeCallback<PaginationResponse<UserComment>>)

Retrieves a page of comments written by the SDK's current profile, with count and page links. Resolves the profile ID and access token internally from currentProfileOnce.

Link copied to clipboard
abstract fun unBlockProfile(blockId: String, liveLikeCallback: LiveLikeCallback<LiveLikeEmptyResponse>)

The function unBlockProfile takes a blockId and a callback as parameters and is used to unblock a profile.

Link copied to clipboard
abstract fun updateChatNickname(nickname: String, callback: LiveLikeCallback<LiveLikeProfile>)

The function updateChatNickname takes a nickname and a callback function as parameters and updates the chat nickname.

Link copied to clipboard

The function updateChatUserPic is used to update the profile picture of a chat user and takes a URL and a callback as parameters.

Link copied to clipboard
abstract fun updateProfileAttributes(attributes: List<ProfileAttribute>, liveLikeCallback: LiveLikeCallback<LiveLikeProfile>)
Link copied to clipboard
abstract fun updateUserCustomData(customData: String, liveLikeCallback: LiveLikeCallback<LiveLikeProfile>)

The function updateUserCustomData updates the custom data of a user and invokes a callback with the updated user profile.