Skip to main content

UIImagePickerControllerDelegate

Trait UIImagePickerControllerDelegate 

Source
pub unsafe trait UIImagePickerControllerDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn imagePickerController_didFinishPickingImage_editingInfo(
        &self,
        picker: &UIImagePickerController,
        image: &UIImage,
        editing_info: Option<&NSDictionary<UIImagePickerControllerInfoKey, AnyObject>>,
    )
       where Self: Sized + Message { ... }
    unsafe fn imagePickerController_didFinishPickingMediaWithInfo(
        &self,
        picker: &UIImagePickerController,
        info: &NSDictionary<UIImagePickerControllerInfoKey, AnyObject>,
    )
       where Self: Sized + Message { ... }
    fn imagePickerControllerDidCancel(&self, picker: &UIImagePickerController)
       where Self: Sized + Message { ... }
}
Available on crate feature UIImagePickerController only.
Expand description

Provided Methods§

Source

unsafe fn imagePickerController_didFinishPickingImage_editingInfo( &self, picker: &UIImagePickerController, image: &UIImage, editing_info: Option<&NSDictionary<UIImagePickerControllerInfoKey, AnyObject>>, )
where Self: Sized + Message,

👎Deprecated
Available on crate features UIImage and UINavigationController and UIResponder and UIViewController only.
§Safety

editing_info generic should be of the correct type.

Source

unsafe fn imagePickerController_didFinishPickingMediaWithInfo( &self, picker: &UIImagePickerController, info: &NSDictionary<UIImagePickerControllerInfoKey, AnyObject>, )
where Self: Sized + Message,

Available on crate features UINavigationController and UIResponder and UIViewController only.
§Safety

info generic should be of the correct type.

Source

fn imagePickerControllerDidCancel(&self, picker: &UIImagePickerController)
where Self: Sized + Message,

Available on crate features UINavigationController and UIResponder and UIViewController only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIImagePickerControllerDelegate

Source§

impl ProtocolType for dyn UIImagePickerControllerDelegate

Source§

const NAME: &'static str = "UIImagePickerControllerDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> UIImagePickerControllerDelegate for ProtocolObject<T>

Implementors§