C# Class PhotoSharingApp.Universal.Camera.CameraEngine

Inheritance: PhotoSharingApp.Universal.ComponentModel.ObservableObjectBase, ICameraEngine
Mostrar archivo Open project: Microsoft/Appsample-Photosharing

Public Methods

Method Description
CleanUp ( ) : System.Threading.Tasks.Task

Cleans the instance up.

GetNumberOfAvailableDevices ( ) : Task

Gets the number of available devices that can be used for taking photos.

Init ( ICameraView cameraView ) : void

Initializes the camera engine.

InitCamera ( DeviceInformation deviceInformation = null ) : System.Threading.Tasks.Task

Initializes the camera.

StartPreviewAsync ( ) : System.Threading.Tasks.Task

Starts the video preview.

StopPreviewAsync ( ) : System.Threading.Tasks.Task

Stops the preview.

SwitchCamera ( ) : System.Threading.Tasks.Task

Switches the camera.

SwitchFlashMode ( ) : System.Threading.Tasks.Task

Switches the flash mode.

TakePhoto ( ) : Task

Takes the photo.

UnloadCamera ( ) : System.Threading.Tasks.Task

Unloads the camera.

Private Methods

Method Description
GetDevice ( ) : Task

Gets the device for the desired panel.

InitResolutions ( ) : System.Threading.Tasks.Task

Initializes the resolutions.

RefreshPreviewRotation ( ) : System.Threading.Tasks.Task

Refreshes the preview rotation.

Method Details

CleanUp() public method

Cleans the instance up.
public CleanUp ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

GetNumberOfAvailableDevices() public method

Gets the number of available devices that can be used for taking photos.
public GetNumberOfAvailableDevices ( ) : Task
return Task

Init() public method

Initializes the camera engine.
public Init ( ICameraView cameraView ) : void
cameraView ICameraView The camera view.
return void

InitCamera() public method

Initializes the camera.
public InitCamera ( DeviceInformation deviceInformation = null ) : System.Threading.Tasks.Task
deviceInformation Windows.Devices.Enumeration.DeviceInformation
return System.Threading.Tasks.Task

StartPreviewAsync() public method

Starts the video preview.
public StartPreviewAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

StopPreviewAsync() public method

Stops the preview.
public StopPreviewAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

SwitchCamera() public method

Switches the camera.
public SwitchCamera ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

SwitchFlashMode() public method

Switches the flash mode.
public SwitchFlashMode ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

TakePhoto() public method

Takes the photo.
public TakePhoto ( ) : Task
return Task

UnloadCamera() public method

Unloads the camera.
public UnloadCamera ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task