| // Signature format: 4.0 |
| package androidx.camera.view { |
| |
| @RequiresApi(21) 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 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.view.CameraController.OutputSize? getImageCaptureTargetSize(); |
| method public com.google.common.util.concurrent.ListenableFuture<java.lang.Void!> getInitializationFuture(); |
| method @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 @androidx.camera.view.video.ExperimentalVideo public androidx.camera.video.Quality? getVideoCaptureTargetQuality(); |
| 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 @androidx.camera.view.video.ExperimentalVideo public boolean isRecording(); |
| method @MainThread public boolean isTapToFocusEnabled(); |
| method @MainThread @androidx.camera.view.video.ExperimentalVideo 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 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 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 setPreviewTargetSize(androidx.camera.view.CameraController.OutputSize?); |
| method @MainThread public void setTapToFocusEnabled(boolean); |
| method @MainThread @androidx.camera.view.video.ExperimentalVideo public void setVideoCaptureTargetQuality(androidx.camera.video.Quality?); |
| method @MainThread public com.google.common.util.concurrent.ListenableFuture<java.lang.Void!> setZoomRatio(float); |
| method @MainThread @RequiresApi(26) @androidx.camera.view.video.ExperimentalVideo 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 @androidx.camera.view.video.ExperimentalVideo 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 @androidx.camera.view.video.ExperimentalVideo 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 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 @androidx.camera.view.video.ExperimentalVideo public static final int VIDEO_CAPTURE = 4; // 0x4 |
| } |
| |
| @RequiresApi(21) public static final class CameraController.OutputSize { |
| ctor public CameraController.OutputSize(android.util.Size); |
| ctor public CameraController.OutputSize(int); |
| method public int getAspectRatio(); |
| method public android.util.Size? getResolution(); |
| field public static final int UNASSIGNED_ASPECT_RATIO = -1; // 0xffffffff |
| } |
| |
| @RequiresApi(21) 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(); |
| } |
| |
| @RequiresApi(21) 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 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 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); |
| } |
| |
| @RequiresApi(21) 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; |
| } |
| |
| @RequiresApi(21) 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; |
| } |
| |
| @RequiresApi(21) 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); |
| } |
| |
| } |
| |
| package androidx.camera.view.transform { |
| |
| @RequiresApi(21) 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); |
| } |
| |
| @RequiresApi(21) 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); |
| } |
| |
| @RequiresApi(21) 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); |
| } |
| |
| @RequiresApi(21) public final class OutputTransform { |
| } |
| |
| } |
| |
| package androidx.camera.view.video { |
| |
| @RequiresApi(21) @androidx.camera.view.video.ExperimentalVideo 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; |
| } |
| |
| @RequiresOptIn @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.CLASS) public @interface ExperimentalVideo { |
| } |
| |
| } |
| |