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 { ... }
}ICDeviceBrowser only.Expand description
A delegate of ICDeviceBrowser must conform to ICDeviceBrowserDelegate protocol.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn deviceBrowser_didAddDevice_moreComing(
&self,
browser: &ICDeviceBrowser,
device: &ICDevice,
more_coming: bool,
)
Available on crate feature ICDevice only.
unsafe fn deviceBrowser_didAddDevice_moreComing( &self, browser: &ICDeviceBrowser, device: &ICDevice, more_coming: bool, )
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.
Sourceunsafe fn deviceBrowser_didRemoveDevice_moreGoing(
&self,
browser: &ICDeviceBrowser,
device: &ICDevice,
more_going: bool,
)
Available on crate feature ICDevice only.
unsafe fn deviceBrowser_didRemoveDevice_moreGoing( &self, browser: &ICDeviceBrowser, device: &ICDevice, more_going: bool, )
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.
Sourceunsafe fn deviceBrowser_deviceDidChangeName(
&self,
browser: &ICDeviceBrowser,
device: &ICDevice,
)
Available on crate feature ICDevice only.
unsafe fn deviceBrowser_deviceDidChangeName( &self, browser: &ICDeviceBrowser, device: &ICDevice, )
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.
Sourceunsafe fn deviceBrowser_deviceDidChangeSharingState(
&self,
browser: &ICDeviceBrowser,
device: &ICDevice,
)
👎Deprecated: deviceDidChangeSharingState will no longer be calledAvailable on crate feature ICDevice only.
unsafe fn deviceBrowser_deviceDidChangeSharingState( &self, browser: &ICDeviceBrowser, device: &ICDevice, )
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.
Sourceunsafe fn deviceBrowser_requestsSelectDevice(
&self,
browser: &ICDeviceBrowser,
device: &ICDevice,
)
Available on crate feature ICDevice only.
unsafe fn deviceBrowser_requestsSelectDevice( &self, browser: &ICDeviceBrowser, device: &ICDevice, )
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.
Sourceunsafe fn deviceBrowserDidEnumerateLocalDevices(
&self,
browser: &ICDeviceBrowser,
)
unsafe fn deviceBrowserDidEnumerateLocalDevices( &self, browser: &ICDeviceBrowser, )
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.
Sourceunsafe fn deviceBrowserWillSuspendOperations(&self, browser: &ICDeviceBrowser)
unsafe fn deviceBrowserWillSuspendOperations(&self, browser: &ICDeviceBrowser)
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.
Sourceunsafe fn deviceBrowserDidSuspendOperations(&self, browser: &ICDeviceBrowser)
unsafe fn deviceBrowserDidSuspendOperations(&self, browser: &ICDeviceBrowser)
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.
Sourceunsafe fn deviceBrowserDidCancelSuspendOperations(
&self,
browser: &ICDeviceBrowser,
)
unsafe fn deviceBrowserDidCancelSuspendOperations( &self, browser: &ICDeviceBrowser, )
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.
Sourceunsafe fn deviceBrowserDidResumeOperations(&self, browser: &ICDeviceBrowser)
unsafe fn deviceBrowserDidResumeOperations(&self, browser: &ICDeviceBrowser)
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.