iOS Guides | Samples

MonoTouch.UIKit.UIImagePickerController Class

Provides access to the system image and video capturing and selection facilities.

See Also: UIImagePickerController


[MonoTouch.Foundation.Register("UIImagePickerController", true)]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.TvOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
public class UIImagePickerController : UINavigationController


The UIImagePickerController is used both for taking images and movies and for selecting previously saved images and movies. The appearance and behavior of the UIImagePickerController is determined by the UIImagePickerController.SourceType property.

Before using the UIImagePickerController the application developer should verify the capabilities of the application user's device by checking:

Related content


Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions:

The members of MonoTouch.UIKit.UIImagePickerController are listed below.

See Also: UINavigationController

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Fields

static readonly
CropRectNSString. Key for the editing information dictionary; indicates the cropped rectangle applied to the original image.
static readonly
EditedImageNSString. Key for the editing information dictionary; indicates the image edited by the user.
static readonly
MediaTypeNSString. A string indicating the type of media being picked.
static readonly
MediaURLNSString. The filesystem URL for a movie.
static readonly
OriginalImageNSString. Key for the editing information dictionary; indicates the original, uncropped image selected by the user.

Public Properties

AllowsEditingBoolean. Whether the application user is allowed to edit a selected picture or movie.
AllowsImageEditingBoolean. Whether the application user is allowed to edit images.
CameraCaptureModeUIImagePickerControllerCameraCaptureMode. The capture mode of the camera.
CameraDeviceUIImagePickerControllerCameraDevice. The camera used by this UIImagePickerController.
CameraFlashModeUIImagePickerControllerCameraFlashMode. The current flash mode of the active camera.
CameraOverlayViewUIView. A custom UIView to overlay on top of the default image picker interface.
CameraViewTransformCGAffineTransform. The affine transform to apply to the camera's preview image.
ClassHandleIntPtr. The handle for this class.
DelegateNSObject. An instance of the MonoTouch.Foundation.NSObject model class which acts as the class delegate.
GetAnimationControllerForOperationFunc<UINavigationController, UINavigationControllerOperation, UIViewController, UIViewController, IUIViewControllerAnimatedTransitioning>. Delegate invoked by the object to get a value.
GetInteractionControllerForAnimationControllerFunc<UINavigationController, IUIViewControllerAnimatedTransitioning, IUIViewControllerInteractiveTransitioning>. Delegate invoked by the object to get a value.
GetPreferredInterfaceOrientationFunc<UINavigationController, UIInterfaceOrientation>. Delegate invoked by the object to get a value.
ImagePickerControllerDelegateUIImagePickerControllerDelegate. The delegate object that can be used to respond to events relating to this UIImagePickerController.
MediaMetadataNSString. Represents the value associated with the constant UIImagePickerControllerMediaMetadata
MediaTypesString[]. The media types accessed by this UIImagePickerController.
NavigationControllerDelegateUINavigationControllerDelegate. A delegate object that can be used to respond to navigation events.
ReferenceUrlNSString. Represents the value associated with the constant UIImagePickerControllerReferenceURL
ShowsCameraControlsBoolean. Whether this UIImagePickerController should display the default camera controls.
SourceTypeUIImagePickerControllerSourceType. The type of picker interface displayed by this UIImagePickerController.
SupportedInterfaceOrientationsFunc<UINavigationController, UIInterfaceOrientationMask>. Delegate invoked by the object to get a value.
VideoMaximumDurationDouble. The maximum duration, in seconds, for a video recording.
VideoQualityUIImagePickerControllerQualityType. The video recording and transcoding quality.

Public Methods

AvailableCaptureModesForCameraDevice(UIImagePickerControllerCameraDevice) : NSNumber[]
The capture modes for the specified camera.
AvailableMediaTypes(UIImagePickerControllerSourceType) : String[]
The available media types for the specified source type.
IsCameraDeviceAvailable(UIImagePickerControllerCameraDevice) : Boolean
Whether the camera can be used.
IsFlashAvailableForCameraDevice(UIImagePickerControllerCameraDevice) : Boolean
Whether the specified camera has its flash enabled.
IsSourceTypeAvailable(UIImagePickerControllerSourceType) : Boolean
Whether the specified UIImagePickerControllerSourceType is available to the application.|Whether the specified UIImagePickerControllerSourceType can be used by the applicati.
StartVideoCapture() : Boolean
Begins video capture using this UIImagePickerController's CameraDevice.
Ends video capture.
Captures a still image using this UIImagePickerController's CameraDevice.

Protected Methods

Releases the resources used by the UIImagePickerController object.

Public Events

CanceledEvent raised by the object.
DidShowViewControllerEvent raised by the object.
FinishedPickingImageEvent raised by the object.
FinishedPickingMediaEvent raised by the object.
WillShowViewControllerEvent raised by the object.