InsiderDelegate

public protocol InsiderDelegate: AnyObject

The Insider delegate protocol.

  • This method will be called on delegate for send command

    Declaration

    Swift

    optional func insider(_ insider: Insider, didReceiveRemote message: InsiderMessage?)

    Parameters

    insider

    instance of Insider class

    params

    request params

  • This method will be called on delegate for sendAndWaitForResponse command

    Declaration

    Swift

    optional func insider(_ insider: Insider, returnResponseMessageForRemote message: InsiderMessage?) -> InsiderMessage?

    Parameters

    insider

    instance of Insider class

    params

    request params

    Return Value

    return params

  • This method will be called on delegate for notification command

    Declaration

    Swift

    optional func insider(_ insider: Insider, didSendNotificationWith message: InsiderMessage?)

    Parameters

    insider

    instance of Insider class

    params

    request params sent in notification

  • This method will be called on delegate for systemInfo command

    Declaration

    Swift

    optional func insider(_ insider: Insider, didReturn systemInfo: InsiderMessage?)

    Parameters

    insider

    instance of Insider class

    systemInfo

    returned system information

  • This method is caled when a new directory is created in sandbox

    Declaration

    Swift

    optional func insider(_ insider: Insider, didCreateDirectoryAt path: String)

    Parameters

    insider

    instance of Insider class

    path

    path to the new created directory

  • This method is called when an item is removed from sandbox

    Declaration

    Swift

    optional func insider(_ insider: Insider, didDeleteItemAt path: String)

    Parameters

    insider

    instance of Insider class

    path

    path of the removed item

  • This method is called when an item is downloaded from sandbox

    Declaration

    Swift

    optional func insider(_ insider: Insider, didDownloadFileAt path: String)

    Parameters

    insider

    instance of Insider class

    path

    path to the downloaded item

  • This method is called when an item is moved in sandbox

    Declaration

    Swift

    optional func insider(_ insider: Insider, didMoveItem fromPath: String, to path: String)

    Parameters

    insider

    instance of Insider class

    fromPath

    initial path to the item

    toPath

    path to the item after it was moved

  • This method is called when an item is uploaded to sandbox

    Declaration

    Swift

    optional func insider(_ insider: Insider, didUploadFileAt path: String)

    Parameters

    insider

    instance of Insider class

    path

    path to the uploaded item