tryToChangeEnableStatus

open fun tryToChangeEnableStatus(@NonNull channel: OpenChannel, enabled: Boolean, @NonNull hintText: String): Boolean

Enables or disables the input view with hint text. If the user's status is not allowed to send messages, the enable value cannot be changed.

Return

true if the enable setting is reflected, false otherwise since 3.17.0

Parameters

channel

The open channel to be checked for the user's status

enabled

true if the input view is enabled, false otherwise

hintText

The hint text to be displayed