UIPrinterPickerControllerDelegate

Trait UIPrinterPickerControllerDelegate 

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

Provided Methods§

Source

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

Available on crate features UIResponder and UIViewController only.
Source

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

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

Source

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

Source

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

Source

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

Source

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§