6.1 Lock/Unlock File
6.1.1 Lock File
NSURL *fileURL = [NSURL fileURLWithPath:@"your file path"];
[[BayunCore sharedInstance] lockFile:fileURL success:^{
NSLog(@"File locked successfully.");
} failure:^(BayunError errorCode) {
NSLog(@"Error locking file.");
}];
let fileURL : NSURL = NSURL(fileURLWithPath:"file path")
BayunCore.sharedInstance().lockFile(fileURL, success: {
NSLog("File locked successfully.")
}, failure: { (bayunErrorCode) in
NSLog("Error locking file.")
})6.1.2 Lock File with Encryption Policy, Key Generation Policy
6.1.3 Unlock File
Last updated