FeatureConfig

public class FeatureConfig

Feature flag configuration for the ChatUI SDK.

Obtain the singleton instance via featureConfig.

Constructors

Link copied to clipboard
public void FeatureConfig()

Types

Link copied to clipboard
public interface SSLInterceptor
Interceptor for SSL certificate verification.
Link copied to clipboard
public enum VoiceMessageType
Voice message quality setting.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public int groupCacheMaxCount
Link copied to clipboard
Link copied to clipboard
public boolean hideEmojiButton
Link copied to clipboard
public boolean isEditMessageEnable
Link copied to clipboard
public MutableLiveData<Boolean> isQuickReply
Link copied to clipboard
public boolean isQuickReplyEnable
Link copied to clipboard
public boolean isReferenceEnable
Link copied to clipboard
public boolean isUserOnlineStatusEnable
Link copied to clipboard
public IQuickReplyProvider quickReplyProvider
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public boolean soundInForeground
Link copied to clipboard
public int userCacheMaxCount

Functions

Link copied to clipboard
public void enableEditMessage(boolean value)
Enables or disables message editing on long-press.
Link copied to clipboard
public void enableQuickReply(IQuickReplyProvider provider)
Enables the quick-reply feature.
Link copied to clipboard
public void enableReadReceipt(Array<ChannelType> supportedTypes)
Enables read receipts for the specified channel types.
Link copied to clipboard
public void enableReference(Boolean value)
Enables or disables the message reference (quote) feature.
Link copied to clipboard
public void enableUserOnlineStatus(boolean value)
Enables or disables user online status display.
Link copied to clipboard
Returns the AMR-NB voice encoding bit rate (bps).
Link copied to clipboard
Returns the AMR-WB voice encoding bit rate (bps).
Link copied to clipboard
public ChatUIImageEngine getChatUIImageEngine()
Returns the active image engine.
Link copied to clipboard
public ChatUIMediaInterceptor getChatUIMediaInterceptor()
Returns the media interceptor, or null if not set.
Link copied to clipboard
public int getGroupCacheMaxCount()
Link copied to clipboard
Link copied to clipboard
public MutableLiveData<Boolean> getIsQuickReply()
Returns a LiveData that tracks whether quick-reply is enabled.
Link copied to clipboard
public IQuickReplyProvider getQuickReplyProvider()
Returns the quick-reply content provider, or null if not set.
Link copied to clipboard
Returns the SSL interceptor, or null if not set.
Link copied to clipboard
public int getUserCacheMaxCount()
Link copied to clipboard
Returns the current voice message type.
Link copied to clipboard
public void initConfig(Context context)
Initializes this configuration from Android resource values.
Link copied to clipboard
public boolean isEditMessageEnable()
Returns whether message editing on long-press is enabled.
Link copied to clipboard
@Deprecated()
public boolean isForceUseAAC()
Returns whether AAC encoding is forced.
Link copied to clipboard
public boolean isHideEmojiButton()
Returns whether the emoji button is hidden.
Link copied to clipboard
public boolean isPreLoadUserCache()
Link copied to clipboard
public boolean isQuickReplyEnable()
Returns whether the quick-reply feature is enabled.
Link copied to clipboard
public boolean isQuickReplyType()
Returns an observable for the quick-reply enabled state.
Link copied to clipboard
public boolean isReadReceiptConversationType(ChannelType type)
Returns whether read receipts are enabled for the given channel type.
Link copied to clipboard
public boolean isReferenceEnable()
Returns whether the message reference (quote) feature is enabled.
Link copied to clipboard
public boolean isShowUnknownMessage()
Returns whether unknown message types should be displayed with a fallback view.
Link copied to clipboard
Returns whether an unknown message type should generate a notification.
Link copied to clipboard
public boolean isSoundInForeground()
Returns whether to play a sound on new messages while in the foreground.
Link copied to clipboard
public boolean isUserOnlineStatusEnable()
Returns whether user online status display is enabled.
Link copied to clipboard
public boolean isVibrateInForeground()
Returns whether to vibrate on new messages while in the foreground.
Link copied to clipboard
public void setAudioNBEncodingBitRate(int audioNBEncodingBitRate)
Sets the AMR-NB voice encoding bit rate (bps).
Link copied to clipboard
public void setAudioWBEncodingBitRate(int audioWBEncodingBitRate)
Sets the AMR-WB voice encoding bit rate (bps).
Link copied to clipboard
public void setChatUIImageEngine(ChatUIImageEngine engine)
Sets a custom image engine.
Link copied to clipboard
public void setChatUIMediaInterceptor(ChatUIMediaInterceptor kitMediaInterceptor)
Sets a media interceptor for customizing Glide and WebView loading.
Link copied to clipboard
@Deprecated()
public void setForceUseAAC(boolean forceUseAAC)
No-op since 5.4.1.
Link copied to clipboard
public void setGroupCacheMaxCount(int groupCacheMaxCount)
Link copied to clipboard
public void setGroupMemberCacheMaxCount(int groupMemberCacheMaxCount)
Link copied to clipboard
public void setHideEmojiButton(boolean hideEmojiButton)
Shows or hides the emoji button in the input bar.
Link copied to clipboard
public void setPreLoadUserCache(boolean preLoadUserCache)
Link copied to clipboard
public void setShowUnknownMessage(boolean showUnknownMessage)
Sets whether unknown message types should be displayed with a fallback view.
Link copied to clipboard
public void setShowUnknownMessageNotification(boolean showUnknownMessageNotification)
Sets whether an unknown message type should generate a notification.
Link copied to clipboard
public void setSoundInForeground(boolean soundInForeground)
Sets whether to play a sound on new messages while in the foreground.
Link copied to clipboard
public void setSSLInterceptor(FeatureConfig.SSLInterceptor sSSLInterceptor)
Link copied to clipboard
public void setUserCacheMaxCount(int userCacheMaxCount)
Link copied to clipboard
public void setVibrateInForeground(boolean vibrateInForeground)
Sets whether to vibrate on new messages while in the foreground.
Link copied to clipboard
Sets the voice message type.