首先,让我们看一下cameraview的源代码
/*
*版权所有(c)2016 the Android open source project
*
* licensed under the Apache license,version 2.0(the ' license ');
* you may not use this file except in compliance with the license。
* you may obtain a copy of the license at
*
*
*
* unless required by applicable law or agreed to in writing,软件
* distributed under the license is distributed on an ' as is ' basis,
* without warranties or conditions of any kind,either express or implied .
* see the license for the specific language governing permissions and
* limitations under the License。
*/
package com . Google . Android . camera view;
Import android.a
Import android.con
Import android.con
import Android . OS . build;
import Android . OS . parcel;
import Android . OS . parcelable;
Import Android。
Import Android。
Import Android。
Import Android。
Import android。CreatorCallbacks
Import Android。
Import android.u
importandroid . widget . frame layout;
import Java . lang . anno;
import Java . lang . annopolicy;
Import java.u
Import java.u
public class camera view extends frame layout {
/* * the camera device faces the opposite direction as the device ' s screen。*/
public static final int facing _ back=con;
/* * the camera device faces the same direction as the device ' s screen。*/
public static final int facing _ front=con;
/* * direction the camera faces relative to device screen。*/
@ intdef ({facing _ back,facing _ front})
@Retention)
Public @interface Facing {
}
/** Flash will not be fired。*//
public static final int flash _ off=con;
/* * flash will always be fired during snapshot。*/
public static final int flash _ on=con;
/* * constant emission of light during preview,自动复制和快照。*/
public static final int flash _ torch=con;
/* * flash will be fired automatically when required。*/
public static final int flash _ auto=con;
/* * flash will be fired in red-eye reduction mode。*/
public static final int flash _ red _ eye=con;
/* * the mode for the camera device ' s flash control */
@IntDef({FLASH_OFF,FLASH_ON,
1.《adjustparam看这里!App中CameraView》援引自互联网,旨在传递更多网络信息知识,仅代表作者本人观点,与本网站无关,侵删请联系页脚下方联系方式。
2.《adjustparam看这里!App中CameraView》仅供读者参考,本网站未对该内容进行证实,对其原创性、真实性、完整性、及时性不作任何保证。
3.文章转载时请保留本站内容来源地址,https://www.cxvn.com/gl/djyxgl/166878.html