Package io.rong.imkit.config

## Class FeatureConfig

- All Implemented Interfaces:

      public class FeatureConfig

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public interface` | `FeatureConfig.SSLInterceptor` |

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public boolean` | `isReferenceEnable` |
    `public boolean` | `isDestructEnable` |
    `public boolean` | `isQuickReplyEnable` |
    `public IQuickReplyProvider` | `quickReplyProvider` |
    `public IMCenter.VoiceMessageType` | `voiceMessageType` |
    `public MutableLiveData<Boolean>` | `isQuickReply` |
    `public int` | `audioNBEncodingBitRate` |
    `public int` | `audioWBEncodingBitRate` |
    `public int` | `userCacheMaxCount` |
    `public int` | `groupCacheMaxCount` |
    `public int` | `groupMemberCacheMaxCount` |
    `public boolean` | `rc_wipe_out_notification_message` |
    `public boolean` | `rc_set_java_script_enabled` |
    `public boolean` | `soundInForeground` |
    `public String` | `rc_translation_src_language` |
    `public String` | `rc_translation_target_language` |
    `public boolean` | `hideEmojiButton` |
    `public KitMediaInterceptor` | `kitMediaInterceptor` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `FeatureConfig()` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `isReferenceEnable()` |
    `boolean` | `isDestructEnable()` |
    `boolean` | `isQuickReplyEnable()` |
    `IQuickReplyProvider` | `getQuickReplyProvider()` |
    `IMCenter.VoiceMessageType` | `getVoiceMessageType()` |
    `void` | `setVoiceMessageType(IMCenter.VoiceMessageType type)` |
    `MutableLiveData<Boolean>` | `getIsQuickReply()` |
    `int` | `getAudioNBEncodingBitRate()` |
    `void` | `setAudioNBEncodingBitRate(int audioNBEncodingBitRate)` |
    `int` | `getAudioWBEncodingBitRate()` |
    `void` | `setAudioWBEncodingBitRate(int audioWBEncodingBitRate)` |
    `int` | `getUserCacheMaxCount()` |
    `void` | `setUserCacheMaxCount(int userCacheMaxCount)` |
    `int` | `getGroupCacheMaxCount()` |
    `void` | `setGroupCacheMaxCount(int groupCacheMaxCount)` |
    `int` | `getGroupMemberCacheMaxCount()` |
    `void` | `setGroupMemberCacheMaxCount(int groupMemberCacheMaxCount)` |
    `KitMediaInterceptor` | `getKitMediaInterceptor()` |
    `void` | `setKitMediaInterceptor(KitMediaInterceptor kitMediaInterceptor)` |
    `void` | `initConfig(Context context)` |
    `boolean` | `isQuickReplyType()` |
    `void` | `setKitImageEngine(KitImageEngine engine)` |
    `KitImageEngine` | `getKitImageEngine()` |
    `boolean` | `isReadReceiptConversationType(ConversationType type)` |
    `void` | `enableReadReceipt(Array<ConversationType> supportedTypes)` |
    `void` | `enableReference(Boolean value)` |
    `void` | `enableDestruct(Boolean value)` |
    `void` | `enableQuickReply(IQuickReplyProvider provider)` | 开启快捷回复功能。需要在init 之前调用。
    `boolean` | `isPreLoadUserCache()` |
    `boolean` | `isVibrateInForeground()` | 消息是否震动
    `boolean` | `isSoundInForeground()` | 消息是否响铃
    `void` | `setSoundInForeground(boolean soundInForeground)` | 设置消息是否响铃
    `FeatureConfig.SSLInterceptor` | `getSSLInterceptor()` |
    `boolean` | `isHideEmojiButton()` | 是否隐藏表情按钮
    `void` | `setHideEmojiButton(boolean hideEmojiButton)` |
    `boolean` | `isForceUseAAC()` | 是否强制开启了 aac 编码 5.4.
    `void` | `setForceUseAAC(boolean forceUseAAC)` | 音频录音强制使用 aac 编码 5.4.
    `void` | `setSSLInterceptor(FeatureConfig.SSLInterceptor sSSLInterceptor)` |
    `void` | `setPreLoadUserCache(boolean preLoadUserCache)` |
    `void` | `setVibrateInForeground(boolean vibrateInForeground)` | 设置消息是否震动

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FeatureConfig

          FeatureConfig()

  - ### Method Detail

    - #### isReferenceEnable

           boolean isReferenceEnable()

    - #### isDestructEnable

           boolean isDestructEnable()

    - #### isQuickReplyEnable

           boolean isQuickReplyEnable()

    - #### getQuickReplyProvider

           IQuickReplyProvider getQuickReplyProvider()

    - #### getVoiceMessageType

           IMCenter.VoiceMessageType getVoiceMessageType()

    - #### setVoiceMessageType

           void setVoiceMessageType(IMCenter.VoiceMessageType type)

    - #### getIsQuickReply

           MutableLiveData<Boolean> getIsQuickReply()

    - #### getAudioNBEncodingBitRate

           int getAudioNBEncodingBitRate()

    - #### setAudioNBEncodingBitRate

           void setAudioNBEncodingBitRate(int audioNBEncodingBitRate)

    - #### getAudioWBEncodingBitRate

           int getAudioWBEncodingBitRate()

    - #### setAudioWBEncodingBitRate

           void setAudioWBEncodingBitRate(int audioWBEncodingBitRate)

    - #### getUserCacheMaxCount

           int getUserCacheMaxCount()

      Returns:

        用户信息内存最大值

    - #### setUserCacheMaxCount

           void setUserCacheMaxCount(int userCacheMaxCount)

      Parameters:
        `userCacheMaxCount` - 设置用户信息最大值，sdk 初始化前有效

    - #### getGroupCacheMaxCount

           int getGroupCacheMaxCount()

      Returns:

        群组信息内存最大值

    - #### setGroupCacheMaxCount

           void setGroupCacheMaxCount(int groupCacheMaxCount)

      Parameters:
        `groupCacheMaxCount` - 设置群组信息最大值，sdk 初始化前有效

    - #### getGroupMemberCacheMaxCount

           int getGroupMemberCacheMaxCount()

      Returns:

        群成员信息内存最大值

    - #### setGroupMemberCacheMaxCount

           void setGroupMemberCacheMaxCount(int groupMemberCacheMaxCount)

      Parameters:
        `groupMemberCacheMaxCount` - 设置群成员信息最大值，sdk 初始化前有效

    - #### getKitMediaInterceptor

           KitMediaInterceptor getKitMediaInterceptor()

    - #### setKitMediaInterceptor

           void setKitMediaInterceptor(KitMediaInterceptor kitMediaInterceptor)

    - #### initConfig

           void initConfig(Context context)

    - #### isQuickReplyType

           boolean isQuickReplyType()

    - #### setKitImageEngine

           void setKitImageEngine(KitImageEngine engine)

    - #### getKitImageEngine

           KitImageEngine getKitImageEngine()

    - #### isReadReceiptConversationType

           boolean isReadReceiptConversationType(ConversationType type)

    - #### enableReadReceipt

           void enableReadReceipt(Array<ConversationType> supportedTypes)

    - #### enableReference

           void enableReference(Boolean value)

    - #### enableDestruct

           void enableDestruct(Boolean value)

    - #### enableQuickReply

           void enableQuickReply(IQuickReplyProvider provider)

      开启快捷回复功能。需要在init 之前调用。

      Parameters:
        `provider` - 快捷回复短语的内容提供模板。

    - #### isPreLoadUserCache

           boolean isPreLoadUserCache()

      Returns:

        是否预加载用户缓存

    - #### isVibrateInForeground

           boolean isVibrateInForeground()

      消息是否震动

      Returns:

        返回消息是否震动配置值

    - #### isSoundInForeground

           boolean isSoundInForeground()

      消息是否响铃

      Returns:

        返回消息是否响铃配置值

    - #### setSoundInForeground

           void setSoundInForeground(boolean soundInForeground)

      设置消息是否响铃

      Parameters:
        `soundInForeground` - 是否震动

    - #### getSSLInterceptor

           FeatureConfig.SSLInterceptor getSSLInterceptor()

    - #### isHideEmojiButton

           boolean isHideEmojiButton()

      是否隐藏表情按钮

    - #### setHideEmojiButton

           void setHideEmojiButton(boolean hideEmojiButton)

    - #### isForceUseAAC

          @Deprecated() boolean isForceUseAAC()

      是否强制开启了 aac 编码 5.4.1 之后强制使用 AAC，不再使用 HE_AAC

    - #### setForceUseAAC

          @Deprecated() void setForceUseAAC(boolean forceUseAAC)

      音频录音强制使用 aac 编码 5.4.1 之后强制使用 AAC，不再使用 HE_AAC

    - #### setSSLInterceptor

           void setSSLInterceptor(FeatureConfig.SSLInterceptor sSSLInterceptor)

      Parameters:
        `sSSLInterceptor` - 设置 CombineWebViewActivity 自签证书过滤器

    - #### setPreLoadUserCache

           void setPreLoadUserCache(boolean preLoadUserCache)

      Parameters:
        `preLoadUserCache` - 是否预加载用户缓存

    - #### setVibrateInForeground

           void setVibrateInForeground(boolean vibrateInForeground)

      设置消息是否震动

      Parameters:
        `vibrateInForeground` - 是否震动