C# Class PhotoSharingApp.Universal.Camera.CameraEngine

Inheritance: PhotoSharingApp.Universal.ComponentModel.ObservableObjectBase, ICameraEngine
Afficher le fichier Open project: Microsoft/Appsample-Photosharing

Méthodes publiques

Méthode 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

Méthode 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 méthode

Cleans the instance up.
public CleanUp ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

GetNumberOfAvailableDevices() public méthode

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

Init() public méthode

Initializes the camera engine.
public Init ( ICameraView cameraView ) : void
cameraView ICameraView The camera view.
Résultat void

InitCamera() public méthode

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

StartPreviewAsync() public méthode

Starts the video preview.
public StartPreviewAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

StopPreviewAsync() public méthode

Stops the preview.
public StopPreviewAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

SwitchCamera() public méthode

Switches the camera.
public SwitchCamera ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

SwitchFlashMode() public méthode

Switches the flash mode.
public SwitchFlashMode ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

TakePhoto() public méthode

Takes the photo.
public TakePhoto ( ) : Task
Résultat Task

UnloadCamera() public méthode

Unloads the camera.
public UnloadCamera ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task