QRCodeCameraScanFragment

二维码扫描 - 相机扫描基类

通过继承 BarcodeCameraScanActivityBarcodeCameraScanFragment可快速实现二维码扫描

Author

Jenly

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract fun createAnalyzer(): Analyzer<T>

open fun createAnalyzer(): Analyzer<List<Barcode>>
创建分析器,默认分析所有条码格式
Link copied to clipboard
open fun createCameraScan(previewView: PreviewView): CameraScan<T>
Link copied to clipboard
open fun createRootView(inflater: LayoutInflater, container: ViewGroup): View
Link copied to clipboard
open fun dump(prefix: String, fd: FileDescriptor, writer: PrintWriter, args: Array<String>)
Link copied to clipboard
fun equals(o: Any): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getCameraScan(): CameraScan<T>
Link copied to clipboard
open fun getContext(): Context
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getFlashlightId(): Int
Link copied to clipboard
Link copied to clipboard
fun getHost(): Any
Link copied to clipboard
fun getId(): Int
Link copied to clipboard
open fun getLayoutId(): Int

open fun getLayoutId(): Int
布局ID;通过覆写此方法可以自定义布局
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getPreviewViewId(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getRootView(): View
Link copied to clipboard
fun getSavedStateRegistry(): SavedStateRegistry
Link copied to clipboard
fun getString(resId: Int): String
Link copied to clipboard
fun getTag(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getText(resId: Int): CharSequence
Link copied to clipboard
Link copied to clipboard
open fun getView(): View
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
open fun initCameraScan(cameraScan: CameraScan<T>)
Link copied to clipboard
open fun initUI()
open fun initUI()
Link copied to clipboard
open fun instantiate(context: Context, fname: String): Fragment
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onActivityCreated(savedInstanceState: Bundle)
Link copied to clipboard
open fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent)
Link copied to clipboard
open fun onAttach(context: Context)
Link copied to clipboard
open fun onAttachFragment(childFragment: Fragment)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onCreate(savedInstanceState: Bundle)
Link copied to clipboard
open fun onCreateAnimation(transit: Int, enter: Boolean, nextAnim: Int): Animation
Link copied to clipboard
open fun onCreateAnimator(transit: Int, enter: Boolean, nextAnim: Int): Animator
Link copied to clipboard
Link copied to clipboard
open fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater)
Link copied to clipboard
open fun onCreateView(inflater: LayoutInflater, container: ViewGroup, savedInstanceState: Bundle): View
Link copied to clipboard
open fun onDestroy()
Link copied to clipboard
Link copied to clipboard
open fun onDestroyView()
Link copied to clipboard
open fun onDetach()
Link copied to clipboard
open fun onGetLayoutInflater(savedInstanceState: Bundle): LayoutInflater
Link copied to clipboard
open fun onHiddenChanged(hidden: Boolean)
Link copied to clipboard
open fun onInflate(context: Context, attrs: AttributeSet, savedInstanceState: Bundle)
Link copied to clipboard
open fun onLowMemory()
Link copied to clipboard
open fun onMultiWindowModeChanged(isInMultiWindowMode: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun onOptionsMenuClosed(menu: Menu)
Link copied to clipboard
open fun onPause()
Link copied to clipboard
open fun onPictureInPictureModeChanged(isInPictureInPictureMode: Boolean)
Link copied to clipboard
open fun onPrepareOptionsMenu(menu: Menu)
Link copied to clipboard
open fun onPrimaryNavigationFragmentChanged(isPrimaryNavigationFragment: Boolean)
Link copied to clipboard
open fun onRequestPermissionsResult(requestCode: Int, permissions: Array<String>, grantResults: Array<Int>)
Link copied to clipboard
open fun onResume()
Link copied to clipboard
open fun onSaveInstanceState(outState: Bundle)
Link copied to clipboard
abstract fun onScanResultCallback(p: AnalyzeResult<T>)
Link copied to clipboard
Link copied to clipboard
open fun onStart()
Link copied to clipboard
open fun onStop()
Link copied to clipboard
open fun onViewCreated(view: View, savedInstanceState: Bundle)
Link copied to clipboard
open fun onViewStateRestored(savedInstanceState: Bundle)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun requestCameraPermissionResult(permissions: Array<String>, grantResults: Array<Int>)
Link copied to clipboard
fun requestPermissions(permissions: Array<String>, requestCode: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setArguments(args: Bundle)
Link copied to clipboard
open fun setEnterTransition(transition: Any)
Link copied to clipboard
open fun setExitTransition(transition: Any)
Link copied to clipboard
open fun setHasOptionsMenu(hasMenu: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun setMenuVisibility(menuVisible: Boolean)
Link copied to clipboard
open fun setReenterTransition(transition: Any)
Link copied to clipboard
open fun setRetainInstance(retain: Boolean)
Link copied to clipboard
open fun setReturnTransition(transition: Any)
Link copied to clipboard
open fun setSharedElementEnterTransition(transition: Any)
Link copied to clipboard
Link copied to clipboard
open fun setTargetFragment(fragment: Fragment, requestCode: Int)
Link copied to clipboard
open fun setUserVisibleHint(isVisibleToUser: Boolean)
Link copied to clipboard
open fun startActivity(intent: Intent)
Link copied to clipboard
open fun startActivityForResult(intent: Intent, requestCode: Int)
Link copied to clipboard
open fun startCamera()
Link copied to clipboard
open fun startIntentSenderForResult(intent: IntentSender, requestCode: Int, fillInIntent: Intent, flagsMask: Int, flagsValues: Int, extraFlags: Int, options: Bundle)
Link copied to clipboard
Link copied to clipboard
open fun toString(): String
Link copied to clipboard