C# Класс CameraImpl.CameraSingleton

Singleton class
Наследование: CameraSingletonBase
Показать файл Открыть проект

Открытые методы

Метод Описание
CameraSingleton ( ) : System

Initialize DataURI and Image types.

SaveToLocalFolderAsync ( Stream file, string fileName, IMethodResult StorechoosePictureResult, string>.Dictionary choosePicture_output ) : Task

Stores file in its own virtual drive rho\apps\app

choosePicture ( string>.IReadOnlyDictionary propertyMap, IMethodResult oResult ) : void

Choose the Pictures from the shown list.

copyImageToDeviceGallery ( string pathToImage, IMethodResult oResult ) : void

Not supported by WP8.

enumerate ( IMethodResult oResult ) : void

Get the list of supported Camera

getCameraByType ( string cameraType, IMethodResult oResult ) : void

Get whether the supplied camera type is supported or not.

Приватные методы

Метод Описание
Initialize_choosePicture ( ) : void

Initialize the callback with the default values.

photoChooserTask_Completed ( object sender, PhotoResult e ) : void

After selecting the Picture this event is raised.

Описание методов

CameraSingleton() публичный Метод

Initialize DataURI and Image types.
public CameraSingleton ( ) : System
Результат System

SaveToLocalFolderAsync() публичный Метод

Stores file in its own virtual drive rho\apps\app
public SaveToLocalFolderAsync ( Stream file, string fileName, IMethodResult StorechoosePictureResult, string>.Dictionary choosePicture_output ) : Task
file Stream Stream of file that needs to be saved in the Location.
fileName string Name i n which the file needs to be saved
StorechoosePictureResult IMethodResult Callback event
choosePicture_output string>.Dictionary The path of the image needs to be stored
Результат Task

choosePicture() публичный Метод

Choose the Pictures from the shown list.
public choosePicture ( string>.IReadOnlyDictionary propertyMap, IMethodResult oResult ) : void
propertyMap string>.IReadOnlyDictionary supports only outputformat.
oResult IMethodResult
Результат void

copyImageToDeviceGallery() публичный Метод

Not supported by WP8.
public copyImageToDeviceGallery ( string pathToImage, IMethodResult oResult ) : void
pathToImage string
oResult IMethodResult
Результат void

enumerate() публичный Метод

Get the list of supported Camera
public enumerate ( IMethodResult oResult ) : void
oResult IMethodResult
Результат void

getCameraByType() публичный Метод

Get whether the supplied camera type is supported or not.
public getCameraByType ( string cameraType, IMethodResult oResult ) : void
cameraType string type of camera supported (back or front)
oResult IMethodResult
Результат void