# RongExtension

public class RongExtension

## Constructors

RongExtension
Link copied to clipboard
public void RongExtension(Context context)
RongExtension 构造方法.
public void RongExtension(Context context, AttributeSet attrs)
RongExtension 构造方法.

## Types

ContainerType
Link copied to clipboard
public enum ContainerType

## Functions

addPluginPager
Link copied to clipboard
public void addPluginPager(View v)
在 plugin 界面添加自定义 view，添加后，+ 号区域全部填充为自定义的 view。 当自定义 view 可见时点击 ”+“ 会触发自定义 view 和默认 plugin 界面间进行切换。
bindToConversation
Link copied to clipboard
public void bindToConversation(Fragment fragment, ConversationIdentifier conversationIdentifier, boolean disableSystemEmoji)
collapseExtension
Link copied to clipboard
public void collapseExtension()
收起面板。 兼容旧版本，保留此方法。 推荐使用 ViewModel 对应方法。
getContainer
Link copied to clipboard
public RelativeLayout getContainer(RongExtension.ContainerType type)
获取 extension 各组成部分的容器
getConversationIdentifier
Link copied to clipboard
public ConversationIdentifier getConversationIdentifier()
getConversationType
Link copied to clipboard
public ConversationType getConversationType()
获取当前 Extension 所在会话的会话类型。
getEmoticonBoard
Link copied to clipboard
public EmoticonBoard getEmoticonBoard()
getInputEditText
Link copied to clipboard
public EditText getInputEditText()
getInputPanel
Link copied to clipboard
public InputPanel getInputPanel()
getPluginBoard
Link copied to clipboard
public PluginBoard getPluginBoard()
getTargetId
Link copied to clipboard
public String getTargetId()
获取当前所在会话的 targetId。
onActivityPluginResult
Link copied to clipboard
public void onActivityPluginResult(int requestCode, int resultCode, Intent data)
activity 结束返回结果。
onDestroy
Link copied to clipboard
public void onDestroy()
onPause
Link copied to clipboard
public void onPause()
onRequestPermissionResult
Link copied to clipboard
public boolean onRequestPermissionResult(int requestCode, Array<String> permissions, Array<int> grantResults)
onResume
Link copied to clipboard
public void onResume()
ConversationFragment onResume() 时的生命周期回调。
requestPermissionForPluginResult
Link copied to clipboard
public void requestPermissionForPluginResult(Array<String> permissions, int requestCode, IPluginModule pluginModule)
resetToDefaultView
Link copied to clipboard
public void resetToDefaultView()
public void resetToDefaultView(String conversationType)
public void resetToDefaultView(String conversationType, InputMode mode, boolean forceShowKeyBoard)
setAttachedInfo
Link copied to clipboard
public void setAttachedInfo(View view)
startActivityForPluginResult
Link copied to clipboard
public void startActivityForPluginResult(Intent intent, int requestCode, IPluginModule pluginModule)
updateInputMode
Link copied to clipboard
public void updateInputMode(InputMode inputMode)
public void updateInputMode(InputMode inputMode, boolean forceShowKeyBoard)
useKeyboardHeightProvider
Link copied to clipboard
public boolean useKeyboardHeightProvider()