Show / Hide Table of Contents

Class AN_Camera

Entry point for the camera API.

Inheritance
System.Object
AN_Camera
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: SA.Android.Camera
Assembly: cs.temp.dll.dll
Syntax
public static class AN_Camera

Methods

CaptureImage(Action<AN_CameraCaptureResult>)

Capture an image from the device camera.

Declaration
public static void CaptureImage(Action<AN_CameraCaptureResult> callback)
Parameters
Type Name Description
Action<AN_CameraCaptureResult> callback

Operation result callback.

CaptureVideo(Action<AN_CameraCaptureResult>)

Capture a video from the device camera.

Declaration
public static void CaptureVideo(Action<AN_CameraCaptureResult> callback)
Parameters
Type Name Description
Action<AN_CameraCaptureResult> callback

Operation result callback.

DeleteCapturedMedia()

All media that was captured using device camera on the device storage. Since Unity part will only get media thumbnails as texture2D, you might want to get original captured media using the Path. Once you've complete operations with media, you may removed all captured media files using this method.

Declaration
public static void DeleteCapturedMedia()
In This Article
Back to top Generated by DocFX