public class TuCameraPreviewFragment extends TuCameraPreviewFragmentBase
限定符和类型 | 类和说明 |
---|---|
static interface |
TuCameraPreviewFragment.TuCameraPreviewFragmentDelegate
TuCameraPreviewFragment 事件委托
|
mScreenSizeScale
permissionAlertDelegate
构造器和说明 |
---|
TuCameraPreviewFragment() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
asyncLoadImageCompleted(android.graphics.Bitmap image)
异步加载图片完成
|
protected boolean |
asyncNotifyProcessing(TuSdkResult result)
异步通知处理结果
|
protected void |
dispatcherViewClick(android.view.View v)
分发视图点击事件
|
TuSdkTextButton |
getBackButton()
返回按钮
|
TuSdkTextButton |
getEditButton()
编辑按钮
|
TuSdkComponent.TuSdkComponentDelegate |
getEditComponentDelegate()
获取编辑组件Delegate
|
static int |
getLayoutId()
布局ID
|
TuSdkImageView |
getPreview()
预览图片视图
|
TuCameraPreviewFragment.TuCameraPreviewFragmentDelegate |
getPreviewDelegate()
获取预览委托
|
boolean |
isShowResultPreview()
是否显示处理结果预览图 (默认:关闭,调试时可以开启)
|
protected void |
loadView(android.view.ViewGroup view)
加载视图
|
protected void |
notifyProcessing(TuSdkResult result)
通知处理结果
|
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
创建视图
|
protected void |
onReCapture()
重新拍照
|
protected void |
onSave()
确认保存
|
void |
setEditComponentDelegate(TuSdkComponent.TuSdkComponentDelegate editComponentDelegate)
设置编辑组件Delegate
|
void |
setPreviewDelegate(TuCameraPreviewFragment.TuCameraPreviewFragmentDelegate mPreviewDelegate)
设置预览委托
|
protected void |
viewDidLoad(android.view.ViewGroup view)
初始化视图
|
asyncLoadImage, getCuterImage, getCuterImage, getImage, getImageDisplaySize, getImageSqlInfo, getTempFilePath, handleTest, isAutoRemoveTemp, loadImageWithThread, loadOrginImage, onDestroyView, postProcessWithImage, preProcessWithImage, processingImage, setAutoRemoveTemp, setImage, setImageSqlInfo, setShowResultPreview, setTempFilePath, showResultPreview
addWaterMarkToImage, asyncProcessingIfNeedSave, backUIThreadNotifyProcessing, canSaveFile, getOutputCompress, getSaveToAlbumName, getWaterMarkOption, isSaveToAlbum, isSaveToTemp, saveToAlbum, saveToTemp, setOutputCompress, setSaveToAlbum, setSaveToAlbumName, setSaveToTemp, setWaterMarkOption
getErrorListener, getRequestPermissionCode, getRequiredPermissions, hasRequiredPermission, notifyError, onPermissionGrantedResult, 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, navigatorBarLeftAction, navigatorBarLoaded, navigatorBarRightAction, 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 TuSdkImageView getPreview()
getPreview
在类中 TuImageResultFragment
public TuSdkTextButton getBackButton()
public TuSdkTextButton getEditButton()
public void setEditComponentDelegate(TuSdkComponent.TuSdkComponentDelegate editComponentDelegate)
public TuSdkComponent.TuSdkComponentDelegate getEditComponentDelegate()
public TuCameraPreviewFragment.TuCameraPreviewFragmentDelegate getPreviewDelegate()
public void setPreviewDelegate(TuCameraPreviewFragment.TuCameraPreviewFragmentDelegate mPreviewDelegate)
mPreviewDelegate
- protected void loadView(android.view.ViewGroup view)
TuSdkFragment
loadView
在类中 TuSdkFragment
protected void viewDidLoad(android.view.ViewGroup view)
TuSdkFragment
public boolean isShowResultPreview()
TuImageResultFragment
protected void dispatcherViewClick(android.view.View v)
protected void onReCapture()
protected void onSave()
protected void asyncLoadImageCompleted(android.graphics.Bitmap image)
TuImageResultFragment
protected void notifyProcessing(TuSdkResult result)
TuResultFragment
notifyProcessing
在类中 TuResultFragment
protected boolean asyncNotifyProcessing(TuSdkResult result)
TuResultFragment
asyncNotifyProcessing
在类中 TuResultFragment
result
- SDK处理结果