Class ApplyFriendListFragment
-
- All Implemented Interfaces:
-
android.content.ComponentCallbacks,android.view.View.OnCreateContextMenuListener,androidx.activity.result.ActivityResultCaller,androidx.lifecycle.HasDefaultViewModelProviderFactory,androidx.lifecycle.LifecycleOwner,androidx.lifecycle.ViewModelStoreOwner,androidx.savedstate.SavedStateRegistryOwner,io.rong.imkit.base.BasePage
public class ApplyFriendListFragment extends BaseViewModelFragment<VM>
申请好友列表页面
- Since:
5.12.0
rongcloud
-
-
Field Summary
Fields Modifier and Type Field Description protected ViewrootViewprotected HeadComponentheadComponentprotected ListComponentlistComponentprotected PopupWindowpopupWindowprotected ApplyFriendAdapterapplyFriendAdapterprotected intstatusprotected OnLoadMoreListeneronLoadMoreListenerprotected VMviewModel
-
Constructor Summary
Constructors Constructor Description ApplyFriendListFragment()
-
Method Summary
Modifier and Type Method Description ApplyFriendViewModelonCreateViewModel(Bundle bundle)创建 ViewModel ViewonCreateView(@NonNull() Context context, @NonNull() LayoutInflater inflater, @Nullable() ViewGroup container, @Nullable() Bundle args)创建模块后调用,以创建要在片段或活动中使用的视图。 在此方法中,模块使用属于组件的组件来构建视图。 voidonViewReady(@NonNull() ApplyFriendViewModel viewModel)View 创建之后 voidonFriendApplyAcceptClick(UiFriendApplicationInfo uiFriendApplicationInfo)点击联系人列表项接受 voidonFriendApplyRejectClick(UiFriendApplicationInfo uiFriendApplicationInfo)点击联系人列表项拒绝 voidshowPopupWindow(View anchor)显示弹窗 voidshowDialog(String userId)-
Methods inherited from class io.rong.imkit.base.BaseViewModelFragment
getViewModel, onBeforeViewReady, onCreate, onCreateView -
Methods inherited from class io.rong.imkit.base.BaseFragment
finishActivity, isFragmentAlive, onBackPressed, onDestroy, sendFinishActivityBroadcast -
Methods inherited from class androidx.fragment.app.Fragment
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getDefaultViewModelProviderFactory, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getParentFragmentManager, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSavedStateRegistry, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, getViewModelStore, hasOptionsMenu, hashCode, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityCreated, onActivityResult, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onCreateView, onDestroy, onDestroyOptionsMenu, onDestroyView, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onPrimaryNavigationFragmentChanged, onRequestPermissionsResult, onResume, onSaveInstanceState, onStart, onStop, onViewCreated, onViewStateRestored, postponeEnterTransition, registerForActivityResult, registerForContextMenu, requestPermissions, requireActivity, requireArguments, requireContext, requireFragmentManager, requireHost, requireParentFragment, requireView, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onCreateViewModel
@NonNull() ApplyFriendViewModel onCreateViewModel(Bundle bundle)
创建 ViewModel
- Parameters:
bundle- Bundle- Returns:
返回 ViewModel
-
onCreateView
@NonNull() View onCreateView(@NonNull() Context context, @NonNull() LayoutInflater inflater, @Nullable() ViewGroup container, @Nullable() Bundle args)
创建模块后调用,以创建要在片段或活动中使用的视图。 在此方法中,模块使用属于组件的组件来构建视图。
- Parameters:
context- 上下文inflater- 可用于扩充模块中任何视图的 LayoutInflate 对象container- 父布局args- 实例化模块时提供的参数(非必须)- Returns:
返回 UI 的视图。
-
onViewReady
void onViewReady(@NonNull() ApplyFriendViewModel viewModel)
View 创建之后
- Parameters:
viewModel- VM
-
onFriendApplyAcceptClick
void onFriendApplyAcceptClick(UiFriendApplicationInfo uiFriendApplicationInfo)
点击联系人列表项接受
- Parameters:
uiFriendApplicationInfo- 联系人信息
-
onFriendApplyRejectClick
void onFriendApplyRejectClick(UiFriendApplicationInfo uiFriendApplicationInfo)
点击联系人列表项拒绝
- Parameters:
uiFriendApplicationInfo- 联系人信息
-
showPopupWindow
void showPopupWindow(View anchor)
显示弹窗
- Parameters:
anchor- 锚点
-
showDialog
void showDialog(String userId)
-
-
-
-