Interface UM_iCameraService
Camera related API service. Shared service instance is available via CameraService
Namespace: SA.CrossPlatform.App
Assembly: cs.temp.dll.dll
Syntax
public interface UM_iCameraService
Methods
TakePicture(Int32, Action<UM_MediaResult>)
Take picture using the device camera.
Declaration
void TakePicture(int maxThumbnailSize, Action<UM_MediaResult> callback)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxThumbnailSize | Max image size. If picture size is bigger then imageSize value, picture will be scaled to meet the requirements before transferring from native to unity side. |
Action<UM_MediaResult> | callback | Operation callback. |
TakeVideo(Int32, Action<UM_MediaResult>)
Take video using the device camera.
Declaration
void TakeVideo(int maxThumbnailSize, Action<UM_MediaResult> callback)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxThumbnailSize | Max image size. If picture size is bigger then imageSize value, picture will be scaled to meet the requirements before transferring from native to unity side. |
Action<UM_MediaResult> | callback | Operation callback. |