Trait UIPrinterPickerControllerDelegate

Source
pub unsafe trait UIPrinterPickerControllerDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn printerPickerControllerParentViewController(
        &self,
        printer_picker_controller: &UIPrinterPickerController,
    ) -> Option<Retained<UIViewController>>
       where Self: Sized + Message { ... }
    unsafe fn printerPickerController_shouldShowPrinter(
        &self,
        printer_picker_controller: &UIPrinterPickerController,
        printer: &UIPrinter,
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn printerPickerControllerWillPresent(
        &self,
        printer_picker_controller: &UIPrinterPickerController,
    )
       where Self: Sized + Message { ... }
    unsafe fn printerPickerControllerDidPresent(
        &self,
        printer_picker_controller: &UIPrinterPickerController,
    )
       where Self: Sized + Message { ... }
    unsafe fn printerPickerControllerWillDismiss(
        &self,
        printer_picker_controller: &UIPrinterPickerController,
    )
       where Self: Sized + Message { ... }
    unsafe fn printerPickerControllerDidDismiss(
        &self,
        printer_picker_controller: &UIPrinterPickerController,
    )
       where Self: Sized + Message { ... }
    unsafe fn printerPickerControllerDidSelectPrinter(
        &self,
        printer_picker_controller: &UIPrinterPickerController,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UIPrinterPickerController only.
Expand description

Provided Methods§

Source

unsafe fn printerPickerControllerParentViewController( &self, printer_picker_controller: &UIPrinterPickerController, ) -> Option<Retained<UIViewController>>
where Self: Sized + Message,

Available on crate features UIResponder and UIViewController only.
Source

unsafe fn printerPickerController_shouldShowPrinter( &self, printer_picker_controller: &UIPrinterPickerController, printer: &UIPrinter, ) -> bool
where Self: Sized + Message,

Available on crate feature UIPrinter only.

Use to filter out specific printers from the printer picker. Evaluate the UIPrinter object and returns YES if the printer should be shown, NO otherwise. This delegate can assume that all UIPrinter properties are available (the contactPrinter: method need not be called). This method may be called from threads other than the main thread, and may be called simultaneously from several different threads.

Source

unsafe fn printerPickerControllerWillPresent( &self, printer_picker_controller: &UIPrinterPickerController, )
where Self: Sized + Message,

Source

unsafe fn printerPickerControllerDidPresent( &self, printer_picker_controller: &UIPrinterPickerController, )
where Self: Sized + Message,

Source

unsafe fn printerPickerControllerWillDismiss( &self, printer_picker_controller: &UIPrinterPickerController, )
where Self: Sized + Message,

Source

unsafe fn printerPickerControllerDidDismiss( &self, printer_picker_controller: &UIPrinterPickerController, )
where Self: Sized + Message,

Source

unsafe fn printerPickerControllerDidSelectPrinter( &self, printer_picker_controller: &UIPrinterPickerController, )
where Self: Sized + Message,

Trait Implementations§

Source§

impl ProtocolType for dyn UIPrinterPickerControllerDelegate

Source§

const NAME: &'static str = "UIPrinterPickerControllerDelegate"

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
Source§

impl<T> ImplementedBy<T> for dyn UIPrinterPickerControllerDelegate

Implementations on Foreign Types§

Source§

impl<T> UIPrinterPickerControllerDelegate for ProtocolObject<T>

Implementors§