onAttachedToExtension

public abstract void onAttachedToExtension(Fragment fragment, RongExtension extension)

After entering a conversation, Extension loads all registered modules. Modules can hold and use the Extension. Note: if a module holds an Extension object, it must release it in the onDetachedFromExtension callback to avoid memory leaks.

Parameters

fragment

The fragment where the Extension object resides.

extension

The Extension object.