Interface DeleteChannelListener
-
- All Implemented Interfaces:
public interface DeleteChannelListenerListener for io.getstream.chat.android.client.ChatClient.deleteChannel calls.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonDeleteChannelRequest(User currentUser, String channelType, String channelId)A method called before making an API call to delete a channel. abstract UnitonDeleteChannelResult(String channelType, String channelId, Result<Channel> result)A method called after receiving the response from the delete channel call. abstract Result<Unit>onDeleteChannelPrecondition(User currentUser, String channelType, String channelId)Runs precondition check for ChatClient.deleteChannel. -
-
Method Detail
-
onDeleteChannelRequest
abstract Unit onDeleteChannelRequest(User currentUser, String channelType, String channelId)
A method called before making an API call to delete a channel.
- Parameters:
currentUser- The currently logged in user.channelType- The channel type.channelId- The channel id.
-
onDeleteChannelResult
abstract Unit onDeleteChannelResult(String channelType, String channelId, Result<Channel> result)
A method called after receiving the response from the delete channel call.
- Parameters:
channelType- The channel type.channelId- The channel id.result- The API call result.
-
onDeleteChannelPrecondition
abstract Result<Unit> onDeleteChannelPrecondition(User currentUser, String channelType, String channelId)
Runs precondition check for ChatClient.deleteChannel. The request will be run if the method returns Result.Success and won't be made if it returns Result.Failure.
- Parameters:
currentUser- The currently logged in user.channelType- The channel type.channelId- The channel id.- Returns:
Result.Success if the precondition is fulfilled, Result.Failure otherwise.
-
-
-
-