本文整理匯總了Java中com.sandrios.sandriosCamera.internal.configuration.CameraConfiguration.CameraFace方法的典型用法代碼示例。如果您正苦於以下問題:Java CameraConfiguration.CameraFace方法的具體用法?Java CameraConfiguration.CameraFace怎麽用?Java CameraConfiguration.CameraFace使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.sandrios.sandriosCamera.internal.configuration.CameraConfiguration
的用法示例。
在下文中一共展示了CameraConfiguration.CameraFace方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: switchCamera
import com.sandrios.sandriosCamera.internal.configuration.CameraConfiguration; //導入方法依賴的package包/類
@Override
public void switchCamera(@CameraConfiguration.CameraFace final int cameraFace) {
currentCameraId = cameraManager.getCurrentCameraId().equals(cameraManager.getFaceFrontCameraId()) ?
cameraManager.getFaceBackCameraId() : cameraManager.getFaceFrontCameraId();
cameraManager.closeCamera(this);
}
示例2: switchCamera
import com.sandrios.sandriosCamera.internal.configuration.CameraConfiguration; //導入方法依賴的package包/類
@Override
public void switchCamera(final @CameraConfiguration.CameraFace int cameraFace) {
currentCameraId = camera2Manager.getCurrentCameraId().equals(camera2Manager.getFaceFrontCameraId()) ?
camera2Manager.getFaceBackCameraId() : camera2Manager.getFaceFrontCameraId();
camera2Manager.closeCamera(this);
}
示例3: switchCamera
import com.sandrios.sandriosCamera.internal.configuration.CameraConfiguration; //導入方法依賴的package包/類
@Override
public void switchCamera(final @CameraConfiguration.CameraFace int cameraFace) {
currentCameraId = String.valueOf(camera2Manager.getCurrentCameraId().equals(camera2Manager.getFaceFrontCameraId()) ?
camera2Manager.getFaceBackCameraId() : camera2Manager.getFaceFrontCameraId());
camera2Manager.closeCamera(this);
}
示例4: switchCamera
import com.sandrios.sandriosCamera.internal.configuration.CameraConfiguration; //導入方法依賴的package包/類
void switchCamera(@CameraConfiguration.CameraFace int cameraFace);