public interface ICDeviceDelegate
A delegate of ICDevice must conform to ICDeviceDelegate protocol. [@note] Unless otherwise noted, all delegate callbacks will occur on the main thread.
| Modifier and Type | Method and Description |
|---|---|
default void |
deviceDidBecomeReady(ICDevice device)
deviceDidBecomeReady:
|
void |
deviceDidCloseSessionWithError(ICDevice device,
NSError error)
device:didCloseSessionWithError:
|
default void |
deviceDidEjectWithError(ICDevice device,
NSError error)
device:didEjectWithError:
|
default void |
deviceDidEncounterError(ICDevice device,
NSError error)
device:didEncounterError:
|
void |
deviceDidOpenSessionWithError(ICDevice device,
NSError error)
device:didOpenSessionWithError:
|
default void |
deviceDidReceiveStatusInformation(ICDevice device,
NSDictionary<java.lang.String,?> status)
device:didReceiveStatusInformation:
|
void |
didRemoveDevice(ICDevice device)
didRemoveDevice:
|
void deviceDidCloseSessionWithError(ICDevice device, NSError error)
This message is sent when a session is closed on a device.
This message completes the process initiated by the message "requestCloseSession" sent to the device object. This message is also sent if the device module in control of the device ceases to control the device. [@note] Execution of the delegate callback will occur on the main thread.
default void deviceDidEjectWithError(ICDevice device, NSError error)
This message is sent to the device delegate when the eject has completed. [@note] Execution of the delegate callback will occur on the main thread.
default void deviceDidEncounterError(ICDevice device, NSError error)
This message is sent to the device delegate a device encounters an error. [@note] Execution of the delegate callback will occur on the main thread.
void deviceDidOpenSessionWithError(ICDevice device, NSError error)
This message is sent when a session is opened on a device.
This message completes the process initiated by the message "requestOpenSession" sent to the device object. [@note] Execution of the delegate callback will occur on the main thread.
default void deviceDidReceiveStatusInformation(ICDevice device, NSDictionary<java.lang.String,?> status)
This message is sent to the device delegate when status information is received from a device.
The 'status' dictionary contains two keys, ICStatusNotificationKey and ICLocalizedStatusNotificationKey, which are defined above. Status information keys are located in their respective ICDevice type class header. [@note] Execution of the delegate callback will occur on the main thread.
default void deviceDidBecomeReady(ICDevice device)
This message is sent when the device is ready to receive requests. [@note] Execution of the delegate callback will occur on the main thread.
void didRemoveDevice(ICDevice device)
This message is sent to the delegate to inform that a device has been removed.