| // Signature format: 4.0 |
| package androidx.camera.view { |
| |
| public abstract class CameraController { |
| method @MainThread public void clearEffects(); |
| method @MainThread public void clearImageAnalysisAnalyzer(); |
| method @MainThread public com.google.common.util.concurrent.ListenableFuture<java.lang.Void!> enableTorch(boolean); |
| method @MainThread public androidx.camera.core.CameraControl? getCameraControl(); |
| method @MainThread public androidx.camera.core.CameraInfo? getCameraInfo(); |
| method @MainThread public androidx.camera.core.CameraSelector getCameraSelector(); |
| method @MainThread public java.util.concurrent.Executor? getImageAnalysisBackgroundExecutor(); |
| method @MainThread public int getImageAnalysisBackpressureStrategy(); |
| method @MainThread public int getImageAnalysisImageQueueDepth(); |
| method @MainThread public int getImageAnalysisOutputImageFormat(); |
| method @MainThread public androidx.camera.core.resolutionselector.ResolutionSelector? getImageAnalysisResolutionSelector(); |
| method @Deprecated @MainThread public androidx.camera.view.CameraController.OutputSize? getImageAnalysisTargetSize(); |
| method @MainThread public int getImageCaptureFlashMode(); |
| method @MainThread public java.util.concurrent.Executor? getImageCaptureIoExecutor(); |
| method @MainThread public int getImageCaptureMode(); |
| method @MainThread public androidx.camera.core.resolutionselector.ResolutionSelector? getImageCaptureResolutionSelector(); |
| method @Deprecated @MainThread public androidx.camera.view.CameraController.OutputSize? getImageCaptureTargetSize(); |
| method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void!> getInitializationFuture(); |
| method @MainThread public androidx.camera.core.resolutionselector.ResolutionSelector? getPreviewResolutionSelector(); |
| method @Deprecated @MainThread public androidx.camera.view.CameraController.OutputSize? getPreviewTargetSize(); |
| method @MainThread public androidx.lifecycle.LiveData<java.lang.Integer!> getTapToFocusState(); |
| method @MainThread public androidx.lifecycle.LiveData<java.lang.Integer!> getTorchState(); |
| method @MainThread public androidx.camera.core.DynamicRange getVideoCaptureDynamicRange(); |
| method @MainThread public int getVideoCaptureMirrorMode(); |
| method @MainThread public androidx.camera.video.QualitySelector getVideoCaptureQualitySelector(); |
| method @MainThread public android.util.Range<java.lang.Integer!> getVideoCaptureTargetFrameRate(); |
| method @MainThread public androidx.lifecycle.LiveData<androidx.camera.core.ZoomState!> getZoomState(); |
| method @MainThread public boolean hasCamera(androidx.camera.core.CameraSelector); |
| method @MainThread public boolean isImageAnalysisEnabled(); |
| method @MainThread public boolean isImageCaptureEnabled(); |
| method @MainThread public boolean isPinchToZoomEnabled(); |
| method @MainThread public boolean isRecording(); |
| method @MainThread public boolean isTapToFocusEnabled(); |
| method @MainThread public boolean isVideoCaptureEnabled(); |
| method @MainThread public void setCameraSelector(androidx.camera.core.CameraSelector); |
| method @MainThread public void setEffects(java.util.Set<androidx.camera.core.CameraEffect!>); |
| method @MainThread public void setEnabledUseCases(int); |
| method @MainThread public void setImageAnalysisAnalyzer(java.util.concurrent.Executor, androidx.camera.core.ImageAnalysis.Analyzer); |
| method @MainThread public void setImageAnalysisBackgroundExecutor(java.util.concurrent.Executor?); |
| method @MainThread public void setImageAnalysisBackpressureStrategy(int); |
| method @MainThread public void setImageAnalysisImageQueueDepth(int); |
| method @MainThread public void setImageAnalysisOutputImageFormat(int); |
| method @MainThread public void setImageAnalysisResolutionSelector(androidx.camera.core.resolutionselector.ResolutionSelector?); |
| method @Deprecated @MainThread public void setImageAnalysisTargetSize(androidx.camera.view.CameraController.OutputSize?); |
| method @MainThread public void setImageCaptureFlashMode(int); |
| method @MainThread public void setImageCaptureIoExecutor(java.util.concurrent.Executor?); |
| method @MainThread public void setImageCaptureMode(int); |
| method @MainThread public void setImageCaptureResolutionSelector(androidx.camera.core.resolutionselector.ResolutionSelector?); |
| method @Deprecated @MainThread public void setImageCaptureTargetSize(androidx.camera.view.CameraController.OutputSize?); |
| method @MainThread public com.google.common.util.concurrent.ListenableFuture<java.lang.Void!> setLinearZoom(@FloatRange(from=0.0f, to=1.0f) float); |
| method @MainThread public void setPinchToZoomEnabled(boolean); |
| method @MainThread public void setPreviewResolutionSelector(androidx.camera.core.resolutionselector.ResolutionSelector?); |
| method @Deprecated @MainThread public void setPreviewTargetSize(androidx.camera.view.CameraController.OutputSize?); |
| method @MainThread public void setTapToFocusEnabled(boolean); |
| method @MainThread public void setVideoCaptureDynamicRange(androidx.camera.core.DynamicRange); |
| method @MainThread public void setVideoCaptureMirrorMode(int); |
| method @MainThread public void setVideoCaptureQualitySelector(androidx.camera.video.QualitySelector); |
| method @MainThread public void setVideoCaptureTargetFrameRate(android.util.Range<java.lang.Integer!>); |
| method @MainThread public com.google.common.util.concurrent.ListenableFuture<java.lang.Void!> setZoomRatio(float); |
| method @MainThread @RequiresApi(26) public androidx.camera.video.Recording startRecording(androidx.camera.video.FileDescriptorOutputOptions, androidx.camera.view.video.AudioConfig, java.util.concurrent.Executor, androidx.core.util.Consumer<androidx.camera.video.VideoRecordEvent!>); |
| method @MainThread public androidx.camera.video.Recording startRecording(androidx.camera.video.FileOutputOptions, androidx.camera.view.video.AudioConfig, java.util.concurrent.Executor, androidx.core.util.Consumer<androidx.camera.video.VideoRecordEvent!>); |
| method @MainThread public androidx.camera.video.Recording startRecording(androidx.camera.video.MediaStoreOutputOptions, androidx.camera.view.video.AudioConfig, java.util.concurrent.Executor, androidx.core.util.Consumer<androidx.camera.video.VideoRecordEvent!>); |
| method @MainThread public void takePicture(androidx.camera.core.ImageCapture.OutputFileOptions, java.util.concurrent.Executor, androidx.camera.core.ImageCapture.OnImageSavedCallback); |
| method @MainThread public void takePicture(java.util.concurrent.Executor, androidx.camera.core.ImageCapture.OnImageCapturedCallback); |
| field @Deprecated public static final int COORDINATE_SYSTEM_VIEW_REFERENCED = 1; // 0x1 |
| field public static final int IMAGE_ANALYSIS = 2; // 0x2 |
| field public static final int IMAGE_CAPTURE = 1; // 0x1 |
| field public static final int TAP_TO_FOCUS_FAILED = 4; // 0x4 |
| field public static final int TAP_TO_FOCUS_FOCUSED = 2; // 0x2 |
| field public static final int TAP_TO_FOCUS_NOT_FOCUSED = 3; // 0x3 |
| field public static final int TAP_TO_FOCUS_NOT_STARTED = 0; // 0x0 |
| field public static final int TAP_TO_FOCUS_STARTED = 1; // 0x1 |
| field public static final int VIDEO_CAPTURE = 4; // 0x4 |
| } |
| |
| @Deprecated public static final class CameraController.OutputSize { |
| ctor @Deprecated public CameraController.OutputSize(android.util.Size); |
| ctor @Deprecated public CameraController.OutputSize(int); |
| method @Deprecated public int getAspectRatio(); |
| method @Deprecated public android.util.Size? getResolution(); |
| field @Deprecated public static final int UNASSIGNED_ASPECT_RATIO = -1; // 0xffffffff |
| } |
| |
| public final class LifecycleCameraController extends androidx.camera.view.CameraController { |
| ctor public LifecycleCameraController(android.content.Context); |
| method @MainThread public void bindToLifecycle(androidx.lifecycle.LifecycleOwner); |
| method @MainThread public void unbind(); |
| } |
| |
| public final class PreviewView extends android.widget.FrameLayout { |
| ctor @UiThread public PreviewView(android.content.Context); |
| ctor @UiThread public PreviewView(android.content.Context, android.util.AttributeSet?); |
| ctor @UiThread public PreviewView(android.content.Context, android.util.AttributeSet?, int); |
| ctor @UiThread public PreviewView(android.content.Context, android.util.AttributeSet?, int, int); |
| method @UiThread public android.graphics.Bitmap? getBitmap(); |
| method @UiThread public androidx.camera.view.CameraController? getController(); |
| method @UiThread public androidx.camera.view.PreviewView.ImplementationMode getImplementationMode(); |
| method @UiThread public androidx.camera.core.MeteringPointFactory getMeteringPointFactory(); |
| method @SuppressCompatibility public androidx.camera.view.transform.OutputTransform? getOutputTransform(); |
| method public androidx.lifecycle.LiveData<androidx.camera.view.PreviewView.StreamState!> getPreviewStreamState(); |
| method @UiThread public androidx.camera.view.PreviewView.ScaleType getScaleType(); |
| method @UiThread public android.graphics.Matrix? getSensorToViewTransform(); |
| method @UiThread public androidx.camera.core.Preview.SurfaceProvider getSurfaceProvider(); |
| method @UiThread public androidx.camera.core.ViewPort? getViewPort(); |
| method @UiThread public androidx.camera.core.ViewPort? getViewPort(int); |
| method @UiThread public void setController(androidx.camera.view.CameraController?); |
| method @UiThread public void setImplementationMode(androidx.camera.view.PreviewView.ImplementationMode); |
| method @UiThread public void setScaleType(androidx.camera.view.PreviewView.ScaleType); |
| method @UiThread public void setScreenFlashWindow(android.view.Window?); |
| } |
| |
| public enum PreviewView.ImplementationMode { |
| enum_constant public static final androidx.camera.view.PreviewView.ImplementationMode COMPATIBLE; |
| enum_constant public static final androidx.camera.view.PreviewView.ImplementationMode PERFORMANCE; |
| } |
| |
| public enum PreviewView.ScaleType { |
| enum_constant public static final androidx.camera.view.PreviewView.ScaleType FILL_CENTER; |
| enum_constant public static final androidx.camera.view.PreviewView.ScaleType FILL_END; |
| enum_constant public static final androidx.camera.view.PreviewView.ScaleType FILL_START; |
| enum_constant public static final androidx.camera.view.PreviewView.ScaleType FIT_CENTER; |
| enum_constant public static final androidx.camera.view.PreviewView.ScaleType FIT_END; |
| enum_constant public static final androidx.camera.view.PreviewView.ScaleType FIT_START; |
| } |
| |
| public enum PreviewView.StreamState { |
| enum_constant public static final androidx.camera.view.PreviewView.StreamState IDLE; |
| enum_constant public static final androidx.camera.view.PreviewView.StreamState STREAMING; |
| } |
| |
| public final class RotationProvider { |
| ctor public RotationProvider(android.content.Context); |
| method @CheckResult public boolean addListener(java.util.concurrent.Executor, androidx.camera.view.RotationProvider.Listener); |
| method public void removeListener(androidx.camera.view.RotationProvider.Listener); |
| } |
| |
| public static interface RotationProvider.Listener { |
| method public void onRotationChanged(int); |
| } |
| |
| public final class ScreenFlashView extends android.view.View { |
| ctor @UiThread public ScreenFlashView(android.content.Context); |
| ctor @UiThread public ScreenFlashView(android.content.Context, android.util.AttributeSet?); |
| ctor @UiThread public ScreenFlashView(android.content.Context, android.util.AttributeSet?, int); |
| ctor @UiThread public ScreenFlashView(android.content.Context, android.util.AttributeSet?, int, int); |
| method @UiThread public androidx.camera.core.ImageCapture.ScreenFlash? getScreenFlash(); |
| method @UiThread public void setController(androidx.camera.view.CameraController?); |
| method @UiThread public void setScreenFlashWindow(android.view.Window?); |
| } |
| |
| } |
| |
| package androidx.camera.view.transform { |
| |
| @SuppressCompatibility public final class CoordinateTransform { |
| ctor public CoordinateTransform(androidx.camera.view.transform.OutputTransform, androidx.camera.view.transform.OutputTransform); |
| method public void mapPoint(android.graphics.PointF); |
| method public void mapPoints(float[]); |
| method public void mapRect(android.graphics.RectF); |
| method public void transform(android.graphics.Matrix); |
| } |
| |
| @SuppressCompatibility public final class FileTransformFactory { |
| ctor public FileTransformFactory(); |
| method public androidx.camera.view.transform.OutputTransform getOutputTransform(android.content.ContentResolver, android.net.Uri) throws java.io.IOException; |
| method public androidx.camera.view.transform.OutputTransform getOutputTransform(java.io.File) throws java.io.IOException; |
| method public androidx.camera.view.transform.OutputTransform getOutputTransform(java.io.InputStream) throws java.io.IOException; |
| method public boolean isUsingExifOrientation(); |
| method public void setUsingExifOrientation(boolean); |
| } |
| |
| @SuppressCompatibility public final class ImageProxyTransformFactory { |
| ctor public ImageProxyTransformFactory(); |
| method public androidx.camera.view.transform.OutputTransform getOutputTransform(androidx.camera.core.ImageProxy); |
| method public boolean isUsingCropRect(); |
| method public boolean isUsingRotationDegrees(); |
| method public void setUsingCropRect(boolean); |
| method public void setUsingRotationDegrees(boolean); |
| } |
| |
| @SuppressCompatibility public final class OutputTransform { |
| } |
| |
| } |
| |
| package androidx.camera.view.video { |
| |
| public class AudioConfig { |
| method @RequiresPermission(android.Manifest.permission.RECORD_AUDIO) public static androidx.camera.view.video.AudioConfig create(boolean); |
| method public boolean getAudioEnabled(); |
| field public static final androidx.camera.view.video.AudioConfig AUDIO_DISABLED; |
| } |
| |
| } |
| |