public class TuCameraFragment extends TuCameraFragmentBase implements TuSdkFragmentActivity.TuSdkFragmentActivityEventListener
限定符和类型 | 类和说明 |
---|---|
static interface |
TuCameraFragment.TuCameraFragmentDelegate
相机控制器委托
|
permissionAlertDelegate
构造器和说明 |
---|
TuCameraFragment()
相机控制器
|
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
asyncNotifyProcessing(TuSdkResult result)
异步通知处理结果
|
protected void |
configCamera(TuSdkStillCameraInterface camera)
配置相机参数
|
protected void |
configGroupFilterView(GroupFilterBaseView view)
配置滤镜栏视图
|
protected void |
dispatcherViewClick(android.view.View v)
分发视图点击事件
|
TuSdkImageView |
getAlbumPosterView()
相册照片
|
CameraConfigs.CameraFacing |
getAvPostion()
相机方向 (默认:CameraInfo.CAMERA_FACING_BACK)
Camera.CameraInfo |
android.widget.RelativeLayout |
getBottomBar()
底部栏目
|
android.widget.RelativeLayout |
getCameraView()
相机视图
|
float |
getCameraViewRatio()
视频视图显示比例 (默认:0, 0 <= mRegionRatio, 当设置为0时全屏显示)
|
TuSdkImageButton |
getCaptureButton()
拍摄按钮
|
int |
getCaptureSoundRawId()
自定义拍照声音RAW ID,默认关闭系统发声
|
TuSdkImageButton |
getCloseButton()
关闭按钮
|
android.view.ViewGroup |
getConfigBar()
顶部配置栏
|
CameraConfigs.CameraFlash |
getDefaultFlashMode()
闪关灯模式
|
TuCameraFragment.TuCameraFragmentDelegate |
getDelegate()
相机控制器委托
|
int |
getFilterBarHeight()
滤镜组选择栏高度
|
TuSdkTextButton |
getFilterButton()
滤镜开关按钮
|
java.util.List<java.lang.String> |
getFilterGroup()
需要显示的滤镜名称列表 (如果为空将显示所有自定义滤镜)
|
FilterParameterConfigView |
getFilterParameterConfigView()
滤镜参数调节视图
|
int |
getFilterTableCellLayoutId()
滤镜列表行视图布局资源ID
|
TuSdkImageButton |
getFlashButton()
闪光灯按钮
|
android.widget.TextView |
getFlashModelAuto()
自动闪光灯选项
|
android.widget.TextView |
getFlashModelOff()
关闭闪光灯选项
|
android.widget.TextView |
getFlashModelOpen()
开启闪光灯选项
|
android.widget.TextView |
getFlashTitleTextView()
闪光灯标题
|
int |
getFocalDistanceScale()
设置焦距初始值
|
int |
getFocusTouchViewId()
触摸聚焦视图ID
|
int |
getGroupFilterCellWidth()
行视图宽度
|
TuCameraFilterView |
getGroupFilterView()
滤镜分组视图
|
int |
getGroupTableCellLayoutId()
滤镜分组列表行视图布局资源ID
|
TuSdkImageButton |
getGuideLineButton()
相机辅助线切换按钮
|
android.widget.TextView |
getGuideLineTitleTextView()
相机辅助线切换按钮标题
|
static int |
getLayoutId()
布局ID
|
java.lang.Class<?> |
getOnlineFragmentClazz()
在线滤镜控制器类型 (需要继承Fragment,以及实现TuFilterOnlineFragmentInterface接口)
|
protected float |
getOutputPictureRatio()
获取输出照片比例
|
org.lasque.tusdk.core.struct.TuSdkSize |
getOutputSize()
照片输出图片长宽 (默认:全屏)
|
float |
getPreviewEffectScale()
预览视图实时缩放比例 (默认:0.75, 实时预览时,缩小到全屏大小比例,提升预览效率, 0 < mPreviewEffectScale <= 1)
|
java.lang.Class<? extends TuCameraPreviewFragmentBase> |
getPreviewFragmentClazz()
拍照完成后预览控制器类型 (默认 TuCameraPreviewFragment.class)
|
protected float |
getPreviewOffsetTopPercent(int ratioType)
获取当前 Ratio 预览画面顶部偏移百分比(默认:-1 居中显示 取值范围:0-1)
|
protected float |
getPreviewRatio()
获取相机预览采集比例
|
TuSdkImageButton |
getRatioButton()
相机比例切换按钮
|
android.widget.TextView |
getRatioTitleTextView()
相机比例切换按钮标题
|
int |
getRegionViewColor()
视频覆盖区域颜色 (默认:0xFF000000)
|
TuSdkImageButton |
getSettingsButton()
更多设置按钮
|
android.widget.RelativeLayout |
getSettingsTouchView()
滤镜选项视图
|
android.view.View |
getSettingsView()
更多设置按钮
|
TuSdkTextButton |
getSkinButton()
滤镜开关按钮
|
android.widget.ImageView |
getStartingView()
启动视图
|
CameraConfigs.CameraFlash[] |
getSupportedCameraFlashs()
获取支持的闪光灯模式
|
TuSdkImageButton |
getSwitchButton()
切换镜头按钮
|
protected void |
handleFilterButton()
切换滤镜视图显示
|
protected void |
handleFlashButton()
开启闪光灯选项视图
|
protected void |
handleFlashModel(CameraConfigs.CameraFlash flashMode)
切换闪光灯模式
|
protected void |
handleGuideLineButton()
切换辅助线显示
|
protected void |
handleSettingsButton()
处理设置按钮
|
protected void |
handleSkinButton()
切换滤镜视图显示
|
protected void |
handleSwitchButton()
切换前后摄像头
|
protected void |
handleTouchView()
关闭闪光灯选项视图
|
protected void |
initCameraView()
初始化相机及控件, 在 viewDidLoad 之后调用
|
boolean |
isAutoReleaseAfterCaptured()
自动释放相机在拍摄后 (节省手机内存, 需要手动再次启动)
|
boolean |
isAutoSelectGroupDefaultFilter()
自动选择分组滤镜指定的默认滤镜
|
boolean |
isDisableCaptureSound()
禁用系统拍照声音 (默认:false)
|
boolean |
isDisableContinueFoucs()
禁用持续自动对焦 (默认:false)
|
boolean |
isDisableFocusBeep()
禁用聚焦声音 (默认:false)
|
boolean |
isDisableMirrorFrontFacing()
禁用前置摄像头自动水平镜像 (默认: false,前置摄像头拍摄结果自动进行水平镜像)
|
boolean |
isDisplayAlbumPoster()
是否显示相册照片 (默认: false,如显示,点击照片跳转到相册)
|
boolean |
isDisplayFiltersSubtitles()
显示滤镜标题视图
|
boolean |
isDisplayGuideLine()
是否显示辅助线
|
boolean |
isEnableCaptureWithVolumeKeys()
是否允许音量键拍照 (默认关闭)
|
boolean |
isEnableFaceDetection()
是否开启脸部追踪 (需要相机人脸追踪权限,请访问tusdk.com 控制台开启权限)
|
boolean |
isEnableFilterConfig()
开启滤镜配置选项
|
boolean |
isEnableFilters()
是否开启滤镜支持 (默认: 关闭)
|
boolean |
isEnableFiltersHistory()
开启用户滤镜历史记录
|
boolean |
isEnableFocalDistance()
开启手势调焦 (默认:true)
|
boolean |
isEnableLongTouchCapture()
开启长按拍摄 (默认:false)
|
boolean |
isEnableNormalFilter()
开启无效果滤镜 (默认: true)
|
boolean |
isEnableOnlineFilter()
开启在线滤镜
|
boolean |
isEnablePreview()
拍照后是否开启预览
|
boolean |
isOutputImageData()
是否直接输出图片数据 (默认:false,输出已经处理好的图片Bitmap)
|
boolean |
isSaveLastFilter()
是否保存最后一次使用的滤镜
|
boolean |
isShowFilterDefault()
默认是否显示滤镜视图 (默认: 不显示, 如果mEnableFilters = false, mShowFilterDefault将失效)
|
boolean |
isUnifiedParameters()
是否需要统一配置参数 (默认false, 取消三星默认降噪,锐化)
|
protected void |
loadAlbumPosterImage()
加载相册最新照片缩略图
|
protected void |
loadFilterView()
加载滤镜视图
|
protected void |
loadView(android.view.ViewGroup view)
loadView
|
protected void |
notifyProcessing(TuSdkResult result)
通知处理结果
|
boolean |
onActivityKeyDispatcher(TuSdkFragmentActivity activity,
int keyCode)
获取音量键触发事件
|
boolean |
onActivityTouchMotionDispatcher(TuSdkFragmentActivity activity,
boolean isZoomIn)
获取手势放大和缩小操作
|
protected void |
onCameraStateChangedImpl(TuSdkStillCameraInterface camera,
TuSdkStillCameraAdapter.CameraState state)
相机状态改变
|
protected void |
onCameraTakedPictureImpl(TuSdkStillCameraInterface camera,
TuSdkResult captrueResult)
获取拍摄图片
|
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
创建视图
|
protected void |
onFilterChanged(org.lasque.tusdk.core.seles.sources.SelesOutInput selesOutInput)
滤镜切换事件
|
protected void |
onGroupFilterHidden(TuCameraFilterView view)
滤镜组隐藏
|
void |
onOrientationChanged(InterfaceOrientation orien)
设备旋转通知
|
void |
onPause() |
protected void |
onPermissionGrantedResult(boolean permissionGranted)
是否已被授予权限
|
void |
onResume() |
protected void |
onSkinFilterChanged(org.lasque.tusdk.core.seles.sources.SelesOutInput selesOutInput) |
void |
setAutoReleaseAfterCaptured(boolean autoReleaseAfterCaptured)
自动释放相机在拍摄后 (节省手机内存, 需要手动再次启动)
|
void |
setAutoSelectGroupDefaultFilter(boolean mAutoSelectGroupDefaultFilter)
自动选择分组滤镜指定的默认滤镜
|
void |
setAvPostion(CameraConfigs.CameraFacing mAvPostion)
相机方向 (默认:CameraFacing.Back)
CameraConfigs.CameraFacing |
void |
setCameraViewRatio(float mCameraViewRatio)
视频视图显示比例 (默认:0, 0 <= mRegionRatio, 当设置为0时全屏显示)
|
void |
setCaptureSoundRawId(int captureSoundRawId)
自定义拍照声音RAW ID,默认关闭系统发声
|
protected void |
setCurrentRatioType(int ratioType)
设置当前比例类型
|
void |
setDefaultFlashMode(CameraConfigs.CameraFlash mDefaultFlashMode)
闪关灯模式
|
void |
setDelegate(TuCameraFragment.TuCameraFragmentDelegate mDelegate)
相机控制器委托
|
void |
setDisableCaptureSound(boolean disbleCaptureSound)
禁用系统拍照声音 (默认:false)
|
void |
setDisableContinueFoucs(boolean disableContinueFoucs)
禁用持续自动对焦 (默认:false)
|
void |
setDisableFocusBeep(boolean disableFocusBeep)
禁用聚焦声音 (默认:false)
|
void |
setDisableMirrorFrontFacing(boolean mDisableMirrorFrontFacing)
禁用前置摄像头自动水平镜像 (默认: false,前置摄像头拍摄结果自动进行水平镜像)
|
void |
setDisplayAlbumPoster(boolean mDisplayAlbumPoster)
是否显示相册照片 (默认: false,如显示,点击照片跳转到相册)
|
void |
setDisplayFiltersSubtitles(boolean mDisplayFiltersSubtitles)
显示滤镜标题视图
|
void |
setDisplayGuideLine(boolean mDisplayGuideLine)
是否显示辅助线
|
void |
setEnableCaptureWithVolumeKeys(java.lang.Boolean mEnableCaptureWithVolumeKeys)
是否允许音量键拍照 (默认关闭)
|
void |
setEnableFaceDetection(boolean enableFaceDetection)
是否开启脸部追踪 (需要相机人脸追踪权限,请访问tusdk.com 控制台开启权限)
|
void |
setEnableFilterConfig(boolean mEnableFilterConfig)
开启滤镜配置选项
|
void |
setEnableFilters(boolean mEnableFilters)
是否开启滤镜支持 (默认: 关闭)
|
void |
setEnableFiltersHistory(boolean mEnableFiltersHistory)
开启用户滤镜历史记录
|
void |
setEnableFocalDistance(boolean enableFocalDistance)
开启手势调焦 (默认:true)
|
void |
setEnableLongTouchCapture(boolean enableLongTouchCapture)
开启长按拍摄 (默认:false)
|
void |
setEnableNormalFilter(boolean mEnableNormalFilter)
开启无效果滤镜 (默认: true)
|
void |
setEnableOnlineFilter(boolean mEnableOnlineFilter)
开启在线滤镜
|
void |
setEnablePreview(boolean enablePreview)
设置是否开启拍照后预览
|
void |
setFilterBarHeight(int mFilterBarHeight)
滤镜组选择栏高度
|
void |
setFilterGroup(java.util.List<java.lang.String> mFilterGroup)
需要显示的滤镜名称列表 (如果为空将显示所有自定义滤镜)
|
void |
setFilterTableCellLayoutId(int mFilterTableCellLayoutId)
滤镜列表行视图布局资源ID
|
void |
setFocalDistanceScale(int scale)
设置焦距初始值
|
void |
setFocusTouchViewId(int mFocusTouchViewId)
触摸聚焦视图ID
|
void |
setGroupFilterCellWidth(int mGroupFilterCellWidth)
行视图宽度
|
void |
setGroupTableCellLayoutId(int mGroupTableCellLayoutId)
滤镜分组列表行视图布局资源ID
|
void |
setOnlineFragmentClazz(java.lang.Class<?> mOnlineFragmentClazz)
在线滤镜控制器类型 (需要继承Fragment,以及实现TuFilterOnlineFragmentInterface接口)
|
void |
setOutputImageData(boolean outputImageData)
是否直接输出图片数据 (默认:false,输出已经处理好的图片Bitmap)
|
protected void |
setOutputPictureRatio(float outputPictureRatio)
设置输出照片比例
|
void |
setOutputSize(org.lasque.tusdk.core.struct.TuSdkSize mOutputSize)
照片输出分辨率
|
void |
setPreviewEffectScale(float mPreviewEffectScale)
预览视图实时缩放比例 (默认:0.75, 实时预览时,缩小到全屏大小比例,提升预览效率, 0 < mPreviewEffectScale <= 1)
|
void |
setPreviewFragmentClazz(java.lang.Class<? extends TuCameraPreviewFragmentBase> previewFragmentClazz)
设置预览视图
|
protected void |
setPreviewRatio(float previewRatio)
设置相机预览采集比例
|
void |
setRegionViewColor(int mRegionViewColor)
视频覆盖区域颜色 (默认:0xFF000000)
|
void |
setSaveLastFilter(boolean mSaveLastFilter)
是否保存最后一次使用的滤镜
|
void |
setShowFilterDefault(boolean mShowFilterDefault)
默认是否显示滤镜视图 (默认: 不显示, 如果mEnableFilters = false, mShowFilterDefault将失效)
|
void |
setSupportedCameraFlashs(CameraConfigs.CameraFlash[] supportedCameraFlashs)
设置支持的闪光灯模式
|
void |
setUnifiedParameters(boolean unifiedParameters)
是否需要统一配置参数 (默认false, 取消三星默认降噪,锐化)
|
protected void |
viewDidLoad(android.view.ViewGroup view)
初始化视图
|
asyncProcessingIfNeedSave, getCamera, getCurrentRatio, getCurrentRatioType, getRatioType, getRequiredPermissions, handleCameraRatio, handleCaptureButton, handleCaptureWithVolume, handleCloseButton, handleSwitchFilter, onDestroyView, setRatioType
addWaterMarkToImage, backUIThreadNotifyProcessing, canSaveFile, getOutputCompress, getSaveToAlbumName, getWaterMarkOption, isSaveToAlbum, isSaveToTemp, saveToAlbum, saveToTemp, setOutputCompress, setSaveToAlbum, setSaveToAlbumName, setSaveToTemp, setWaterMarkOption
getErrorListener, getRequestPermissionCode, 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, navigatorBarLeftAction, navigatorBarLoaded, navigatorBarRightAction, navSearchViewSearch, navSearchViewSetDelegate, navSegmentedAddTexts, navSegmentedAddTexts, navSegmentedSetDelegate, navSegmentedSetected, onAttach, onBackForSlide, onBackPressed, onCreateAnimation, onDestroy, onFragmentAnimationEnd, onKeyUp, onNavigatorBarButtonClicked, onPauseFragment, onPreDraw, onRefreshData, 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 TuCameraFragment.TuCameraFragmentDelegate getDelegate()
public void setDelegate(TuCameraFragment.TuCameraFragmentDelegate mDelegate)
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
TuFragment
onCreateView
在类中 TuFragment
public CameraConfigs.CameraFacing getAvPostion()
Camera.CameraInfo
getAvPostion
在类中 TuCameraFragmentBase
public void setAvPostion(CameraConfigs.CameraFacing mAvPostion)
CameraConfigs.CameraFacing
public org.lasque.tusdk.core.struct.TuSdkSize getOutputSize()
public void setOutputSize(org.lasque.tusdk.core.struct.TuSdkSize mOutputSize)
public CameraConfigs.CameraFlash getDefaultFlashMode()
{@link org.lasque.tusdk.core.utils.hardware.CameraConfigs.CameraFlash}
public CameraConfigs.CameraFlash[] getSupportedCameraFlashs()
public void setSupportedCameraFlashs(CameraConfigs.CameraFlash[] supportedCameraFlashs)
supportedCameraFlashs
- public void setDefaultFlashMode(CameraConfigs.CameraFlash mDefaultFlashMode)
mDefaultFlashMode
- 闪关灯模式{@link org.lasque.tusdk.core.utils.hardware.CameraConfigs.CameraFlash}
public boolean isEnableFilters()
public void setEnableFilters(boolean mEnableFilters)
public boolean isShowFilterDefault()
public void setShowFilterDefault(boolean mShowFilterDefault)
public int getGroupFilterCellWidth()
public void setGroupFilterCellWidth(int mGroupFilterCellWidth)
public int getGroupTableCellLayoutId()
{@link org.lasque.tusdk.impl.components.widget.GroupFilterGroupView}
public void setGroupTableCellLayoutId(int mGroupTableCellLayoutId)
滤镜分组列表行视图布局资源ID
- (默认:
tusdk_impl_component_widget_group_filter_group_view,如需自定义请继承自
GroupFilterGroupView){@link org.lasque.tusdk.impl.components.widget.GroupFilterGroupView}
public int getFilterTableCellLayoutId()
{@link org.lasque.tusdk.impl.components.widget.GroupFilterItemView}
public void setFilterTableCellLayoutId(int mFilterTableCellLayoutId)
滤镜列表行视图布局资源ID
- (默认:
tusdk_impl_component_widget_group_filter_item_view,如需自定义请继承自
GroupFilterItemView){@link org.lasque.tusdk.impl.components.widget.GroupFilterItemView}
public int getFilterBarHeight()
public void setFilterBarHeight(int mFilterBarHeight)
public java.util.List<java.lang.String> getFilterGroup()
public void setFilterGroup(java.util.List<java.lang.String> mFilterGroup)
public boolean isEnableFilterConfig()
public void setEnableFilterConfig(boolean mEnableFilterConfig)
public boolean isSaveLastFilter()
public void setSaveLastFilter(boolean mSaveLastFilter)
public boolean isAutoSelectGroupDefaultFilter()
public void setAutoSelectGroupDefaultFilter(boolean mAutoSelectGroupDefaultFilter)
public int getFocusTouchViewId()
{@link org.lasque.tusdk.core.utils.hardware.TuSdkVideoCameraExtendViewInterface}
public void setFocusTouchViewId(int mFocusTouchViewId)
mFocusTouchViewId
- 触摸聚焦视图ID (默认: tusdk_impl_component_camera_focus_touch_view){@link org.lasque.tusdk.core.utils.hardware.TuSdkVideoCameraExtendViewInterface}
public float getCameraViewRatio()
getCameraViewRatio
在类中 TuCameraFragmentBase
public void setCameraViewRatio(float mCameraViewRatio)
public boolean isOutputImageData()
public void setOutputImageData(boolean outputImageData)
public void setFocalDistanceScale(int scale)
public int getFocalDistanceScale()
public boolean isDisableCaptureSound()
public void setDisableCaptureSound(boolean disbleCaptureSound)
public int getCaptureSoundRawId()
public void setCaptureSoundRawId(int captureSoundRawId)
public boolean isAutoReleaseAfterCaptured()
public void setAutoReleaseAfterCaptured(boolean autoReleaseAfterCaptured)
public boolean isEnableLongTouchCapture()
public void setEnableLongTouchCapture(boolean enableLongTouchCapture)
public void setEnableFocalDistance(boolean enableFocalDistance)
public boolean isEnableFocalDistance()
public boolean isDisableFocusBeep()
public void setDisableFocusBeep(boolean disableFocusBeep)
public boolean isDisableContinueFoucs()
public void setDisableContinueFoucs(boolean disableContinueFoucs)
public boolean isUnifiedParameters()
public void setUnifiedParameters(boolean unifiedParameters)
public float getPreviewEffectScale()
public void setPreviewEffectScale(float mPreviewEffectScale)
public int getRegionViewColor()
public void setRegionViewColor(int mRegionViewColor)
public void setDisplayGuideLine(boolean mDisplayGuideLine)
public boolean isDisplayGuideLine()
public boolean isDisableMirrorFrontFacing()
public void setDisableMirrorFrontFacing(boolean mDisableMirrorFrontFacing)
public boolean isEnableFiltersHistory()
public void setEnableFiltersHistory(boolean mEnableFiltersHistory)
public boolean isDisplayFiltersSubtitles()
public void setDisplayFiltersSubtitles(boolean mDisplayFiltersSubtitles)
public boolean isEnableNormalFilter()
public void setEnableNormalFilter(boolean mEnableNormalFilter)
public boolean isEnableOnlineFilter()
public void setEnableOnlineFilter(boolean mEnableOnlineFilter)
public java.lang.Class<?> getOnlineFragmentClazz()
org.lasque.tusdk.modules.components.filter.TuFilterOnlineFragmentInterface}
public void setOnlineFragmentClazz(java.lang.Class<?> mOnlineFragmentClazz)
org.lasque.tusdk.modules.components.filter.TuFilterOnlineFragmentInterface}
public boolean isDisplayAlbumPoster()
public void setDisplayAlbumPoster(boolean mDisplayAlbumPoster)
public boolean isEnableFaceDetection()
public void setEnableFaceDetection(boolean enableFaceDetection)
public void setEnableCaptureWithVolumeKeys(java.lang.Boolean mEnableCaptureWithVolumeKeys)
mEnableCaptureWithVolumeKeys
- public boolean isEnableCaptureWithVolumeKeys()
public boolean isEnablePreview()
public void setEnablePreview(boolean enablePreview)
enablePreview
- public java.lang.Class<? extends TuCameraPreviewFragmentBase> getPreviewFragmentClazz()
public void setPreviewFragmentClazz(java.lang.Class<? extends TuCameraPreviewFragmentBase> previewFragmentClazz)
previewFragmentClazz
- public android.widget.RelativeLayout getCameraView()
getCameraView
在类中 TuCameraFragmentBase
public FilterParameterConfigView getFilterParameterConfigView()
public android.view.ViewGroup getConfigBar()
public TuSdkImageButton getCloseButton()
public TuSdkImageButton getSwitchButton()
public TuSdkImageButton getSettingsButton()
public android.view.View getSettingsView()
public TuSdkImageButton getFlashButton()
public android.widget.TextView getFlashTitleTextView()
public TuSdkImageButton getRatioButton()
public android.widget.TextView getRatioTitleTextView()
public TuSdkImageButton getGuideLineButton()
public android.widget.TextView getGuideLineTitleTextView()
public TuSdkImageView getAlbumPosterView()
public TuCameraFilterView getGroupFilterView()
protected void configGroupFilterView(GroupFilterBaseView view)
public android.widget.RelativeLayout getBottomBar()
public TuSdkImageButton getCaptureButton()
public TuSdkTextButton getFilterButton()
public TuSdkTextButton getSkinButton()
public android.widget.RelativeLayout getSettingsTouchView()
public android.widget.TextView getFlashModelAuto()
public android.widget.TextView getFlashModelOpen()
public android.widget.TextView getFlashModelOff()
public android.widget.ImageView getStartingView()
protected void dispatcherViewClick(android.view.View v)
protected void loadView(android.view.ViewGroup view)
loadView
在类中 TuCameraFragmentBase
protected void viewDidLoad(android.view.ViewGroup view)
TuSdkFragment
viewDidLoad
在类中 TuCameraFragmentBase
protected void onPermissionGrantedResult(boolean permissionGranted)
onPermissionGrantedResult
在类中 TuComponentFragment
permissionGranted
- protected void initCameraView()
initCameraView
在类中 TuCameraFragmentBase
protected void loadFilterView()
protected void loadAlbumPosterImage()
public void onResume()
onResume
在类中 TuSdkFragment
public void onPause()
onPause
在类中 TuSdkFragment
protected void configCamera(TuSdkStillCameraInterface camera)
configCamera
在类中 TuCameraFragmentBase
protected void onFilterChanged(org.lasque.tusdk.core.seles.sources.SelesOutInput selesOutInput)
onFilterChanged
在类中 TuCameraFragmentBase
protected void onSkinFilterChanged(org.lasque.tusdk.core.seles.sources.SelesOutInput selesOutInput)
protected void setPreviewRatio(float previewRatio)
previewRatio
- protected float getPreviewRatio()
protected void setOutputPictureRatio(float outputPictureRatio)
outputPictureRatio
- protected float getOutputPictureRatio()
public void onOrientationChanged(InterfaceOrientation orien)
protected void onCameraStateChangedImpl(TuSdkStillCameraInterface camera, TuSdkStillCameraAdapter.CameraState state)
protected void onCameraTakedPictureImpl(TuSdkStillCameraInterface camera, TuSdkResult captrueResult)
protected void notifyProcessing(TuSdkResult result)
notifyProcessing
在类中 TuResultFragment
result
- SDK处理结果protected boolean asyncNotifyProcessing(TuSdkResult result)
asyncNotifyProcessing
在类中 TuResultFragment
result
- SDK处理结果protected void handleFlashModel(CameraConfigs.CameraFlash flashMode)
handleFlashModel
在类中 TuCameraFragmentBase
protected void handleTouchView()
protected void handleFlashButton()
protected void handleSwitchButton()
protected void handleSettingsButton()
protected void handleGuideLineButton()
protected void handleFilterButton()
protected void handleSkinButton()
protected void onGroupFilterHidden(TuCameraFilterView view)
protected float getPreviewOffsetTopPercent(int ratioType)
getPreviewOffsetTopPercent
在类中 TuCameraFragmentBase
ratioType
- protected void setCurrentRatioType(int ratioType)
public boolean onActivityKeyDispatcher(TuSdkFragmentActivity activity, int keyCode)
onActivityKeyDispatcher
在接口中 TuSdkFragmentActivity.TuSdkFragmentActivityEventListener
public boolean onActivityTouchMotionDispatcher(TuSdkFragmentActivity activity, boolean isZoomIn)
onActivityTouchMotionDispatcher
在接口中 TuSdkFragmentActivity.TuSdkFragmentActivityEventListener
isZoomIn
- 是否为放大操作