Class GroupManagementFragment
-
- All Implemented Interfaces:
-
ai.nexconn.chatui.base.BasePage,android.content.ComponentCallbacks,android.view.View.OnCreateContextMenuListener,androidx.activity.result.ActivityResultCaller,androidx.lifecycle.HasDefaultViewModelProviderFactory,androidx.lifecycle.LifecycleOwner,androidx.lifecycle.ViewModelStoreOwner,androidx.savedstate.SavedStateRegistryOwner
public class GroupManagementFragment extends BaseViewModelFragment<VM>
Fragment for group management.
- Since:
5.12.2
-
-
Field Summary
Fields Modifier and Type Field Description protected HeadComponentheadComponentprotected SettingItemViewgroupAdminViewprotected SettingItemViewgroupEditInfoPermissionViewprotected SettingItemViewgroupAddMemberPermissionViewprotected SettingItemViewgroupRemoveMemberPermissionViewprotected SettingItemViewgroupEditMemberInfoPermissionViewprotected SettingItemViewgroupInvitationConfirmationViewprotected SettingItemViewgroupTransferViewprotected VMviewModel
-
Constructor Summary
Constructors Constructor Description GroupManagementFragment()
-
Method Summary
Modifier and Type Method Description GroupManagementViewModelonCreateViewModel(Bundle bundle)Creates the ViewModel. ViewonCreateView(@NonNull() Context context, @NonNull() LayoutInflater inflater, @Nullable() ViewGroup container, @Nullable() Bundle args)Called after the module is created to build the view for use in a Fragment or Activity. voidonViewReady(@NonNull() GroupManagementViewModel viewModel)Called after the View is created. Map<GroupMemberInfoEditPermission, String>getMemberInfoEditPermissionLabels(Map<GroupMemberInfoEditPermission, String> map)Map<GroupOperationPermission, String>getRemoveMemberPermissionLabels(Map<GroupOperationPermission, String> map)Map<GroupOperationPermission, String>getAddMemberPermissionLabels(Map<GroupOperationPermission, String> map)Map<GroupOperationPermission, String>getGroupInfoEditPermissionLabels(Map<GroupOperationPermission, String> map)<T extends Enum<T>> StringgetLocalizedPermissionLabel(@NonNull() T permission)-
Methods inherited from class ai.nexconn.chatui.base.BaseViewModelFragment
getViewModel, onBeforeViewReady, onCreate, onCreateView -
Methods inherited from class ai.nexconn.chatui.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 androidx.lifecycle.HasDefaultViewModelProviderFactory
getDefaultViewModelCreationExtras -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onCreateViewModel
@NonNull() GroupManagementViewModel onCreateViewModel(Bundle bundle)
Creates the ViewModel.
- Parameters:
bundle- Bundle- Returns:
the ViewModel instance
-
onCreateView
@NonNull() View onCreateView(@NonNull() Context context, @NonNull() LayoutInflater inflater, @Nullable() ViewGroup container, @Nullable() Bundle args)
Called after the module is created to build the view for use in a Fragment or Activity.
- Parameters:
context- contextinflater- the LayoutInflater used to inflate views in the modulecontainer- the parent ViewGroupargs- optional arguments provided when instantiating the module- Returns:
the created UI view
-
onViewReady
void onViewReady(@NonNull() GroupManagementViewModel viewModel)
Called after the View is created.
- Parameters:
viewModel- VM
-
getMemberInfoEditPermissionLabels
Map<GroupMemberInfoEditPermission, String> getMemberInfoEditPermissionLabels(Map<GroupMemberInfoEditPermission, String> map)
-
getRemoveMemberPermissionLabels
Map<GroupOperationPermission, String> getRemoveMemberPermissionLabels(Map<GroupOperationPermission, String> map)
-
getAddMemberPermissionLabels
Map<GroupOperationPermission, String> getAddMemberPermissionLabels(Map<GroupOperationPermission, String> map)
-
getGroupInfoEditPermissionLabels
Map<GroupOperationPermission, String> getGroupInfoEditPermissionLabels(Map<GroupOperationPermission, String> map)
-
getLocalizedPermissionLabel
@NonNull() <T extends Enum<T>> String getLocalizedPermissionLabel(@NonNull() T permission)
-
-
-
-