public class TuAlbumMultipleListFragment extends TuAlbumMultipleListFragmentBase implements TuPhotoGridListView.TuPhotoListCheckedDelegate, TuAlbumMultiplePreviewFragment.TuAlbumMultiplePreviewDelegate
限定符和类型 | 类和说明 |
---|---|
static interface |
TuAlbumMultipleListFragment.TuAlbumMultipleListFragmentDelegate
系统相册委托
|
permissionAlertDelegate
构造器和说明 |
---|
TuAlbumMultipleListFragment()
系统相册控制器
|
限定符和类型 | 方法和说明 |
---|---|
int |
getAlbumCellLayoutId()
相册行视图布局ID
|
TuAlbumPopList |
getAlbumListView()
相册列表视图
|
TuAlbumMultipleListFragment.TuAlbumMultipleListFragmentDelegate |
getDelegate()
系统相册委托
|
java.util.ArrayList<AlbumSqlInfo> |
getGroups()
系统相册列表
|
static int |
getLayoutId()
布局ID
|
int |
getMaxSelection()
一次选择的最大照片数量 (默认: 3, 0 < n <= 9)
|
org.lasque.tusdk.core.struct.TuSdkSize |
getMaxSelectionImageSize()
选择照片的尺寸限制 默认:CGSize(8000,8000)
|
int |
getPhotoCellLayoutId()
行视图布局ID
|
int |
getPhotoColumnNumber()
相册列表每行显示的照片数量 (默认:0, 程序自动适配设备)
|
TuPhotoGridListView |
getPhotoGridView()
照片列表视图
|
ImageSqlHelper.PhotoSortDescriptor |
getPhotosSortDescriptor()
获取相册照片排序方式 默认按照修改时间排序 Media.DATE_MODIFIED
|
int |
getPopListRowHeight()
获取弹出相册列表每一行的高度,默认是64
|
java.lang.Class<?> |
getPreviewFragmentClazz()
获取预览视图控制器
|
int |
getPreviewFragmentLayoutId()
获取预览视图布局ID
|
protected void |
initView()
初始化视图,loadView 之后调用
|
boolean |
isDisplayCameraCell()
是否显示相机图标 (默认:开启)
|
boolean |
isEnableShareSelection()
允许在多个相册中选择 (默认: 开启)
|
void |
navigatorBarLeftAction(TuSdkNavigatorBar.NavigatorBarButtonInterface button)
取消按钮
|
protected void |
navigatorBarLoaded(TuSdkNavigatorBar navigatorBar)
初始化导航栏
|
void |
navigatorBarRightAction(TuSdkNavigatorBar.NavigatorBarButtonInterface button)
完成按钮
|
void |
notifySelectedGroup(AlbumSqlInfo group)
通知获取一个相册组
|
void |
onCompleteButtonClicked()
点击预览界面的完成按钮时的回调
|
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
创建视图
|
void |
onDestroyView() |
protected void |
onPermissionGrantedResult(boolean permissionGranted)
是否已被授予权限
|
void |
onPhotoListChecked(ImageSqlInfo itemData,
int position)
图片勾选框点击事件
|
void |
onSelectButtonClicked(ImageSqlInfo itemData,
int position)
点击预览界面的选择按钮时的回调
|
void |
setAlbumCellLayoutId(int resId)
设置相册行视图布局ID
|
void |
setDelegate(TuAlbumMultipleListFragment.TuAlbumMultipleListFragmentDelegate delegate)
系统相册委托
|
void |
setDisplayCameraCell(boolean mDisplayCameraCell)
是否显示相机图标 (默认:开启)
|
void |
setEnableShareSelection(boolean mEnableShareSelection)
允许在多个相册中选择 (默认: 开启)
|
void |
setMaxSelection(int mMaxSelection)
一次选择的最大照片数量 (默认: 3, 0 < n <= 9)
|
void |
setMaxSelectionImageSize(org.lasque.tusdk.core.struct.TuSdkSize maxSelectionImageSize)
选择照片的尺寸限制 默认:CGSize(8000,8000)
|
void |
setPhotoCellLayoutId(int resId)
设置照片行视图布局ID
|
void |
setPhotoColumnNumber(int mPhotoColumnNumber)
相册列表每行显示的照片数量 (默认:0, 程序自动适配设备)
|
void |
setPhotosSortDescriptor(ImageSqlHelper.PhotoSortDescriptor photosSortDescriptor)
设置相册照片排序方式 默认按照修改时间排序 Media.DATE_MODIFIED
|
void |
setPopListRowHeight(int rowHeight)
设置弹出相册列表每一行的高度,默认是64
|
void |
setPreviewFragmentClazz(java.lang.Class<?> previewClazz)
设置预览视图控制器
|
void |
setPreviewFragmentLayoutId(int layoutId)
设置预览视图布局ID
|
protected void |
viewDidLoad(android.view.ViewGroup view)
初始化视图
|
autoSelectedAblumGroupAction, getPreviewFragmentInstance, getSkipAlbumName, loadView, setSkipAlbumName
getErrorListener, getRequestPermissionCode, getRequiredPermissions, hasRequiredPermission, notifyError, onRequestPermissionsResult, requestRequiredPermissions, setErrorListener
alert, alert, filpModalNavigationActivity, filpModalNavigationActivity, hubDismiss, hubDismissRightNow, hubError, hubError, hubStatus, hubStatus, hubSuccess, hubSuccess, initCreateView, onDetach, presentActivity, presentModalNavigationActivity, presentModalNavigationActivity, presentModalNavigationActivity, pushModalNavigationActivity, pushModalNavigationActivity, setNavLeftButton, setNavLeftButton, setNavLeftButton, setNavLeftHighLightButton, setNavLeftHighLightButton, setNavRightButton, setNavRightButton, setNavRightButton, setNavRightHighLightButton, setNavRightHighLightButton
addOrientationListener, backStackEntryCount, bindSoftInputEvent, dismissActivity, dismissActivityWithAnim, dismissActivityWithAnim, equalViewIds, filpModalNavigationActivity, getDismissAnimType, getNavButton, getOriginFragment, getResColor, getResString, getResString, getResString, getResString, getRootView, getRootViewLayoutId, getSdkActivity, getTitle, getViewById, getViewById, getViewId, isBackButtonShowed, isFragmentPause, isFullScreen, isSupportSlideBack, navigatorBarBackAction, navigatorBarCancelAction, navigatorBarHeight, navSearchViewSearch, navSearchViewSetDelegate, navSegmentedAddTexts, navSegmentedAddTexts, navSegmentedSetDelegate, navSegmentedSetected, onAttach, onBackForSlide, onBackPressed, onCreateAnimation, onDestroy, onFragmentAnimationEnd, onKeyUp, onNavigatorBarButtonClicked, onOrientationChanged, onPause, onPauseFragment, onPreDraw, onRefreshData, onResume, onResumeFragment, popFragment, popFragment, popFragmentRoot, presentActivity, presentActivity, presentModalNavigationActivity, presentModalNavigationActivity, presentModalNavigationActivity, pushFragment, refreshOriginFragment, replaceFragment, runOnUiThread, setIsSupportSlideBack, setNavigatorBarId, setNavigatorBarOnButtom, setNavLeftButton, setNavLeftButton, setNavRightButton, setNavRightButton, setOriginFragment, setRequestedOrientation, setRootViewLayoutId, setTitle, setTitle, showBackButton, showNavigatorBar, showView, showViewIn, wantFullScreen
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, getViewModelStore, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityCreated, onActivityResult, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPictureInPictureModeChanged, onPrepareOptionsMenu, onSaveInstanceState, onStart, onStop, onViewCreated, onViewStateRestored, postponeEnterTransition, registerForContextMenu, requestPermissions, requireActivity, requireContext, requireFragmentManager, requireHost, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
public static int getLayoutId()
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
TuFragment
onCreateView
在类中 TuFragment
public java.util.ArrayList<AlbumSqlInfo> getGroups()
getGroups
在类中 TuAlbumMultipleListFragmentBase
public TuAlbumMultipleListFragment.TuAlbumMultipleListFragmentDelegate getDelegate()
public void setDelegate(TuAlbumMultipleListFragment.TuAlbumMultipleListFragmentDelegate delegate)
delegate
- the delegate to setpublic void notifySelectedGroup(AlbumSqlInfo group)
notifySelectedGroup
在类中 TuAlbumMultipleListFragmentBase
group
- 相册组public void setAlbumCellLayoutId(int resId)
resId
- 相册行视图布局ID (默认: tusdk_impl_component_album_multiple_list_cell)org.lasque.tusdk.impl.components.album.TuAlbumPopListCell}
public int getAlbumCellLayoutId()
org.lasque.tusdk.impl.components.album.TuAlbumPopListCell}
public void setPhotoCellLayoutId(int resId)
resId
- 照片行视图布局ID (默认: tusdk_impl_component_album_photo_multiple_list_cell)org.lasque.tusdk.impl.components.album.TuPhotoGridListViewCell}
public int getPhotoCellLayoutId()
org.lasque.tusdk.impl.components.album.TuPhotoGridListViewCell}
public void setMaxSelection(int mMaxSelection)
public int getMaxSelection()
public void setEnableShareSelection(boolean mEnableShareSelection)
mEnableShareSelection
- true or falsepublic boolean isEnableShareSelection()
public void setDisplayCameraCell(boolean mDisplayCameraCell)
mDisplayCameraCell
- public boolean isDisplayCameraCell()
public void setPhotoColumnNumber(int mPhotoColumnNumber)
mPhotoColumnNumber
- the photoColumnNumber to setpublic int getPhotoColumnNumber()
public void setPopListRowHeight(int rowHeight)
rowHeight
- public int getPopListRowHeight()
public void setPreviewFragmentClazz(java.lang.Class<?> previewClazz)
previewClazz
- public java.lang.Class<?> getPreviewFragmentClazz()
getPreviewFragmentClazz
在类中 TuAlbumMultipleListFragmentBase
public void setPreviewFragmentLayoutId(int layoutId)
layoutId
- public int getPreviewFragmentLayoutId()
public void setPhotosSortDescriptor(ImageSqlHelper.PhotoSortDescriptor photosSortDescriptor)
mPhotosSortDescriptor
- public ImageSqlHelper.PhotoSortDescriptor getPhotosSortDescriptor()
public void setMaxSelectionImageSize(org.lasque.tusdk.core.struct.TuSdkSize maxSelectionImageSize)
maxSelectionImageSize
- 默认:CGSize(8000,8000)public org.lasque.tusdk.core.struct.TuSdkSize getMaxSelectionImageSize()
public TuAlbumPopList getAlbumListView()
public TuPhotoGridListView getPhotoGridView()
protected void onPermissionGrantedResult(boolean permissionGranted)
onPermissionGrantedResult
在类中 TuComponentFragment
permissionGranted
- protected void initView()
public void onDestroyView()
protected void navigatorBarLoaded(TuSdkNavigatorBar navigatorBar)
navigatorBarLoaded
在类中 TuSdkFragment
navigatorBar
- public void navigatorBarLeftAction(TuSdkNavigatorBar.NavigatorBarButtonInterface button)
navigatorBarLeftAction
在类中 TuSdkFragment
public void navigatorBarRightAction(TuSdkNavigatorBar.NavigatorBarButtonInterface button)
navigatorBarRightAction
在类中 TuSdkFragment
protected void viewDidLoad(android.view.ViewGroup view)
TuSdkFragment
public void onPhotoListChecked(ImageSqlInfo itemData, int position)
onPhotoListChecked
在接口中 TuPhotoGridListView.TuPhotoListCheckedDelegate
itemData
- 选中图片信息position
- 选中图片所在相册位置public void onCompleteButtonClicked()
public void onSelectButtonClicked(ImageSqlInfo itemData, int position)
onSelectButtonClicked
在接口中 TuAlbumMultiplePreviewFragment.TuAlbumMultiplePreviewDelegate
itemData
- 当前图片信息position
- 当前图片相册中的位置