Skip to content

Instantly share code, notes, and snippets.

@roblav96
Created September 9, 2016 06:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roblav96/519e35ce9755603928da736998107950 to your computer and use it in GitHub Desktop.
Save roblav96/519e35ce9755603928da736998107950 to your computer and use it in GitHub Desktop.
export class ZipDelegate
extends NSObject
implements SSZipArchiveDelegate {
static ObjCProtocols = [SSZipArchiveDelegate]
init(): ZipDelegate {
return <ZipDelegate>super.init()
}
zipArchiveDidUnzipArchiveFileEntryPathDestPath(
zipFile: string,
entryPath: string,
destPath: string
) {
global.tnsconsole.log('zipArchiveDidUnzipArchiveFileEntryPathDestPath')
global.tnsconsole.log('zipFile', zipFile)
global.tnsconsole.log('entryPath', entryPath)
global.tnsconsole.log('destPath', destPath)
}
zipArchiveProgressEventTotal(loaded: number, total: number) {
global.tnsconsole.log('loaded', loaded)
global.tnsconsole.log('total', total)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment