MedM DeviceKit
<AddDeviceCallback> Protocol Reference

Callback to notify that add operation was finished. More...

#import <AddDeviceCallback.h>

Inheritance diagram for <AddDeviceCallback>:
<DeviceStatusWithAddResultCallback>

Instance Methods

(void) - onSuccess:
 Add operation completed successfully. More...
 
(void) - onFailure:status:statusInfo:
 Add operation failed. More...
 

Detailed Description

Callback to notify that add operation was finished.

Method Documentation

◆ onFailure:status:statusInfo:()

- (void) onFailure: (DeviceInfo *_Nonnull)  source
status: (OperationStatus status
statusInfo: (NSString *_Nullable)  additionalInfo 

Add operation failed.

Parameters
sourcedevice
statusstatus of operation
additionalInfopossibly empty string with additional status info
Warning
source device is nil if it's result of MFI device adding

◆ onSuccess:()

- (void) onSuccess: (DeviceInfo *_Nonnull)  source

Add operation completed successfully.

Parameters
sourceadded device

The documentation for this protocol was generated from the following file: