ICDeviceBrowserDelegate

Trait ICDeviceBrowserDelegate 

Source
pub unsafe trait ICDeviceBrowserDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn deviceBrowser_didAddDevice_moreComing(
        &self,
        browser: &ICDeviceBrowser,
        device: &ICDevice,
        more_coming: bool,
    )
       where Self: Sized + Message { ... }
    unsafe fn deviceBrowser_didRemoveDevice_moreGoing(
        &self,
        browser: &ICDeviceBrowser,
        device: &ICDevice,
        more_going: bool,
    )
       where Self: Sized + Message { ... }
    unsafe fn deviceBrowser_deviceDidChangeName(
        &self,
        browser: &ICDeviceBrowser,
        device: &ICDevice,
    )
       where Self: Sized + Message { ... }
    unsafe fn deviceBrowser_deviceDidChangeSharingState(
        &self,
        browser: &ICDeviceBrowser,
        device: &ICDevice,
    )
       where Self: Sized + Message { ... }
    unsafe fn deviceBrowser_requestsSelectDevice(
        &self,
        browser: &ICDeviceBrowser,
        device: &ICDevice,
    )
       where Self: Sized + Message { ... }
    unsafe fn deviceBrowserDidEnumerateLocalDevices(
        &self,
        browser: &ICDeviceBrowser,
    )
       where Self: Sized + Message { ... }
    unsafe fn deviceBrowserWillSuspendOperations(
        &self,
        browser: &ICDeviceBrowser,
    )
       where Self: Sized + Message { ... }
    unsafe fn deviceBrowserDidSuspendOperations(
        &self,
        browser: &ICDeviceBrowser,
    )
       where Self: Sized + Message { ... }
    unsafe fn deviceBrowserDidCancelSuspendOperations(
        &self,
        browser: &ICDeviceBrowser,
    )
       where Self: Sized + Message { ... }
    unsafe fn deviceBrowserDidResumeOperations(&self, browser: &ICDeviceBrowser)
       where Self: Sized + Message { ... }
}
Available on crate feature ICDeviceBrowser only.
Expand description

A delegate of ICDeviceBrowser must conform to ICDeviceBrowserDelegate protocol.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn deviceBrowser_didAddDevice_moreComing( &self, browser: &ICDeviceBrowser, device: &ICDevice, more_coming: bool, )
where Self: Sized + Message,

Available on crate feature ICDevice only.

This message is sent to the delegate to inform that a device has been added.

If several devices are found during the initial search, then this message is sent once for each device with the value of ‘moreComing’ set to YES in each message except the last one.

Source

unsafe fn deviceBrowser_didRemoveDevice_moreGoing( &self, browser: &ICDeviceBrowser, device: &ICDevice, more_going: bool, )
where Self: Sized + Message,

Available on crate feature ICDevice only.

This message is sent to the delegate to inform that a device has been removed.

If several devices are removed at the same time, then this message is sent once for each device with the value of ‘moreGoing’ set to YES in each message except the last one.

Source

unsafe fn deviceBrowser_deviceDidChangeName( &self, browser: &ICDeviceBrowser, device: &ICDevice, )
where Self: Sized + Message,

Available on crate feature ICDevice only.

This message is sent if the name of a device changes.

This happens if the device module overrides the default name of the device reported by the device’s transport layer, or if the name of the filesystem volume mounted by the device is changed by the user.

Source

unsafe fn deviceBrowser_deviceDidChangeSharingState( &self, browser: &ICDeviceBrowser, device: &ICDevice, )
where Self: Sized + Message,

👎Deprecated: deviceDidChangeSharingState will no longer be called
Available on crate feature ICDevice only.

This message is sent when the sharing state of a device has changes.

Any Image Capture client application can choose to share the device over the network using the sharing or webSharing facility in Image Capture.

Source

unsafe fn deviceBrowser_requestsSelectDevice( &self, browser: &ICDeviceBrowser, device: &ICDevice, )
where Self: Sized + Message,

Available on crate feature ICDevice only.

This message is sent when an event that occurred on the device may be of interest to the client application.

In Mac OS X 10.6, this message is sent when a button is pressed on a device and the current application is the target for that button press. In the case of the button-press event, if a session is open on the device, this message will not be sent to the browser delegate, instead the message ‘device:didReceiveButtonPress:’ is sent to the device delegate.

Source

unsafe fn deviceBrowserDidEnumerateLocalDevices( &self, browser: &ICDeviceBrowser, )
where Self: Sized + Message,

This message is sent after the device browser completes sending ‘deviceBrowser:didAddDevice:moreComing:’ message for all local devices.

Detecting locally connected devices (USB and FireWire devices) is faster than detecting devices connected using a network protocol. An Image Capture client application may use this message to update its user interface to let the user know that it has completed looking for locally connected devices and then start looking for network devices.

Source

unsafe fn deviceBrowserWillSuspendOperations(&self, browser: &ICDeviceBrowser)
where Self: Sized + Message,

This message is sent to the delegate to inform that operations on devices in the browser will be suspended shortly.

Attached devices may require time to prepare the device for suspended communication. This delegate method is called when the application is switched into the background.

Source

unsafe fn deviceBrowserDidSuspendOperations(&self, browser: &ICDeviceBrowser)
where Self: Sized + Message,

This message is sent to the delegate to inform that operations on devices in the browser have been suspended.

All communcation with the attached device will remain suspended until the application has entered the foreground. In no way does this suspension modify the state of the connected device, nor does it issue a close session of any kind. State should always be managed by the application.

Source

unsafe fn deviceBrowserDidCancelSuspendOperations( &self, browser: &ICDeviceBrowser, )
where Self: Sized + Message,

This message is sent to the delegate to inform that operations on devices in the browser have resumed before the suspension timeout.

All communcation with the attached device will remain available as the application was switched back to the foreground before the suspension timeout.

Source

unsafe fn deviceBrowserDidResumeOperations(&self, browser: &ICDeviceBrowser)
where Self: Sized + Message,

This message is sent to the delegate to inform that operations on devices in the browser have resumed.

All communcation with the attached device has been resumed as the application has now entered the foreground.

Trait Implementations§

Source§

impl ProtocolType for dyn ICDeviceBrowserDelegate

Source§

const NAME: &'static str = "ICDeviceBrowserDelegate"

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 ICDeviceBrowserDelegate

Implementations on Foreign Types§

Source§

impl<T> ICDeviceBrowserDelegate for ProtocolObject<T>

Implementors§