C# Class CameraImpl.CameraSingleton

Singleton class
Inheritance: CameraSingletonBase
Afficher le fichier Open project: rhomobile/rhodes

Méthodes publiques

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

Private Methods

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

Method Details

CameraSingleton() public méthode

Initialize DataURI and Image types.
public CameraSingleton ( ) : System
Résultat System

SaveToLocalFolderAsync() public méthode

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
Résultat Task

choosePicture() public méthode

Choose the Pictures from the shown list.
public choosePicture ( string>.IReadOnlyDictionary propertyMap, IMethodResult oResult ) : void
propertyMap string>.IReadOnlyDictionary supports only outputformat.
oResult IMethodResult
Résultat void

copyImageToDeviceGallery() public méthode

Not supported by WP8.
public copyImageToDeviceGallery ( string pathToImage, IMethodResult oResult ) : void
pathToImage string
oResult IMethodResult
Résultat void

enumerate() public méthode

Get the list of supported Camera
public enumerate ( IMethodResult oResult ) : void
oResult IMethodResult
Résultat void

getCameraByType() public méthode

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
Résultat void