InsiderDelegate
public protocol InsiderDelegate: AnyObject
The Insider delegate protocol.
-
This method will be called on delegate for
send
commandDeclaration
Swift
optional func insider(_ insider: Insider, didReceiveRemote message: InsiderMessage?)Parameters
insiderinstance of Insider class
paramsrequest params
-
This method will be called on delegate for
sendAndWaitForResponse
commandDeclaration
Swift
optional func insider(_ insider: Insider, returnResponseMessageForRemote message: InsiderMessage?) -> InsiderMessage?Parameters
insiderinstance of Insider class
paramsrequest params
Return Value
return params
-
This method will be called on delegate for
notification
commandDeclaration
Swift
optional func insider(_ insider: Insider, didSendNotificationWith message: InsiderMessage?)Parameters
insiderinstance of Insider class
paramsrequest params sent in notification
-
This method will be called on delegate for
systemInfo
commandDeclaration
Swift
optional func insider(_ insider: Insider, didReturn systemInfo: InsiderMessage?)Parameters
insiderinstance of Insider class
systemInforeturned 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
insiderinstance of Insider class
pathpath 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
insiderinstance of Insider class
pathpath 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
insiderinstance of Insider class
pathpath 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
insiderinstance of Insider class
fromPathinitial path to the item
toPathpath 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
insiderinstance of Insider class
pathpath to the uploaded item
View on GitHub
InsiderDelegate Protocol Reference