public abstract class TuResultFragment extends TuComponentFragment
permissionAlertDelegate
构造器和说明 |
---|
TuResultFragment() |
限定符和类型 | 方法和说明 |
---|---|
protected android.graphics.Bitmap |
addWaterMarkToImage(android.graphics.Bitmap image)
添加水印
|
protected abstract boolean |
asyncNotifyProcessing(TuSdkResult result)
异步通知处理结果
|
protected void |
asyncProcessingIfNeedSave(TuSdkResult result)
异步处理如果需要保存文件 (默认完成后执行:notifyProcessing(TuSdkResult result))
|
protected void |
backUIThreadNotifyProcessing(TuSdkResult result)
返回主线程通知结果
|
ComponentErrorType |
canSaveFile()
是否允许存储文件
|
int |
getOutputCompress()
照片输出压缩率 (默认:90,0-100 如果设置为0 将保存为PNG格式)
|
java.lang.String |
getSaveToAlbumName()
保存到系统相册的相册名称
|
TuSdkWaterMarkOption |
getWaterMarkOption()
设置水印选项 (默认为空,如果设置不为空,则输出的图片上将带有水印)
|
boolean |
isSaveToAlbum()
保存到系统相册 (默认不保存, 当设置为true时, TuSdkResult.sqlInfo, 处理完成后将自动清理原始图片)
|
boolean |
isSaveToTemp()
保存到临时文件 (默认不保存, 当设置为true时, TuSdkResult.imageFile, 处理完成后将自动清理原始图片)
|
protected abstract void |
notifyProcessing(TuSdkResult result)
通知处理结果
|
void |
onDestroyView() |
protected void |
saveToAlbum(TuSdkResult result)
保存到相册
|
protected void |
saveToTemp(TuSdkResult result)
保存到缓存文件
|
void |
setOutputCompress(int mOutputCompress)
照片输出压缩率 (默认:90,0-100 如果设置为0 将保存为PNG格式)
|
void |
setSaveToAlbum(boolean mSaveToAlbum)
保存到系统相册 (默认不保存, 当设置为true时, TuSdkResult.sqlInfo, 处理完成后将自动清理原始图片)
|
void |
setSaveToAlbumName(java.lang.String mSaveToAlbumName)
保存到系统相册的相册名称
|
void |
setSaveToTemp(boolean mSaveToTemp)
保存到临时文件 (默认不保存, 当设置为true时, TuSdkResult.imageFile, 处理完成后将自动清理原始图片)
|
void |
setWaterMarkOption(TuSdkWaterMarkOption mWaterMarkOption)
设置水印选项 (默认为空,如果设置不为空,则输出的图片上将带有水印)
|
getErrorListener, getRequestPermissionCode, getRequiredPermissions, hasRequiredPermission, notifyError, onPermissionGrantedResult, onRequestPermissionsResult, requestRequiredPermissions, setErrorListener
alert, alert, filpModalNavigationActivity, filpModalNavigationActivity, hubDismiss, hubDismissRightNow, hubError, hubError, hubStatus, hubStatus, hubSuccess, hubSuccess, initCreateView, onCreateView, 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, loadView, 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, viewDidLoad, 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 boolean isSaveToTemp()
public void setSaveToTemp(boolean mSaveToTemp)
public boolean isSaveToAlbum()
public void setSaveToAlbum(boolean mSaveToAlbum)
public java.lang.String getSaveToAlbumName()
public void setSaveToAlbumName(java.lang.String mSaveToAlbumName)
public int getOutputCompress()
public void setOutputCompress(int mOutputCompress)
public void setWaterMarkOption(TuSdkWaterMarkOption mWaterMarkOption)
public TuSdkWaterMarkOption getWaterMarkOption()
protected abstract void notifyProcessing(TuSdkResult result)
protected abstract boolean asyncNotifyProcessing(TuSdkResult result)
result
- SDK处理结果protected void asyncProcessingIfNeedSave(TuSdkResult result)
protected void backUIThreadNotifyProcessing(TuSdkResult result)
protected android.graphics.Bitmap addWaterMarkToImage(android.graphics.Bitmap image)
protected void saveToTemp(TuSdkResult result)
protected void saveToAlbum(TuSdkResult result)
public ComponentErrorType canSaveFile()
public void onDestroyView()
onDestroyView
在类中 TuSdkFragment