C# Class Cirrious.MvvmCross.Plugins.PictureChooser.WindowsPhone.MvxPictureChooserTask

Inheritance: Cirrious.CrossCore.WindowsPhone.Tasks.MvxWindowsPhoneTask, IMvxPictureChooserTask, IMvxCombinedPictureChooserTask
Mostra file Open project: Everbridge/sm-MvvmCross

Public Methods

Method Description
ChooseOrTakePicture ( int maxPixelDimension, int percentQuality, Action pictureAvailable, System.Action assumeCancelled ) : void
ChoosePictureCommon ( ChooserBase chooser, int maxPixelDimension, int percentQuality, Action pictureAvailable, System.Action assumeCancelled ) : void
ChoosePictureFromLibrary ( int maxPixelDimension, int percentQuality ) : Task
ChoosePictureFromLibrary ( int maxPixelDimension, int percentQuality, Action pictureAvailable, System.Action assumeCancelled ) : void
ChoosePictureFromLibraryWithCrop ( int maxPixelDimension, int percentQuality, Action pictureAvailable, System.Action assumeCancelled ) : void

Will set PixelHeight and PixelWidth to maxPixelDimension, creating a "crop" interface on device. If caller sets maxPixelDimension to -1, it means he does NOT want cropping or rescaling

ContinueFileOpenPicker ( object args ) : void
TakePicture ( int maxPixelDimension, int percentQuality ) : Task
TakePicture ( int maxPixelDimension, int percentQuality, Action pictureAvailable, System.Action assumeCancelled ) : void

Private Methods

Method Description
CallAsync ( Stream input, Action success ) : void
ResizeJpegStream ( int maxPixelDimension, int percentQuality, Stream input, Action success ) : void
ResizeThenCallOnMainThread ( int maxPixelDimension, int percentQuality, Stream input, Action success ) : void

Method Details

ChooseOrTakePicture() public method

public ChooseOrTakePicture ( int maxPixelDimension, int percentQuality, Action pictureAvailable, System.Action assumeCancelled ) : void
maxPixelDimension int
percentQuality int
pictureAvailable Action
assumeCancelled System.Action
return void

ChoosePictureCommon() public method

public ChoosePictureCommon ( ChooserBase chooser, int maxPixelDimension, int percentQuality, Action pictureAvailable, System.Action assumeCancelled ) : void
chooser ChooserBase
maxPixelDimension int
percentQuality int
pictureAvailable Action
assumeCancelled System.Action
return void

ChoosePictureFromLibrary() public method

public ChoosePictureFromLibrary ( int maxPixelDimension, int percentQuality ) : Task
maxPixelDimension int
percentQuality int
return Task

ChoosePictureFromLibrary() public method

public ChoosePictureFromLibrary ( int maxPixelDimension, int percentQuality, Action pictureAvailable, System.Action assumeCancelled ) : void
maxPixelDimension int
percentQuality int
pictureAvailable Action
assumeCancelled System.Action
return void

ChoosePictureFromLibraryWithCrop() public method

Will set PixelHeight and PixelWidth to maxPixelDimension, creating a "crop" interface on device. If caller sets maxPixelDimension to -1, it means he does NOT want cropping or rescaling
public ChoosePictureFromLibraryWithCrop ( int maxPixelDimension, int percentQuality, Action pictureAvailable, System.Action assumeCancelled ) : void
maxPixelDimension int
percentQuality int
pictureAvailable Action
assumeCancelled System.Action
return void

ContinueFileOpenPicker() public method

public ContinueFileOpenPicker ( object args ) : void
args object
return void

TakePicture() public method

public TakePicture ( int maxPixelDimension, int percentQuality ) : Task
maxPixelDimension int
percentQuality int
return Task

TakePicture() public method

public TakePicture ( int maxPixelDimension, int percentQuality, Action pictureAvailable, System.Action assumeCancelled ) : void
maxPixelDimension int
percentQuality int
pictureAvailable Action
assumeCancelled System.Action
return void