LockedCameraCapture 主App怎么拿到capture信息

在插件里面,我把数据写到临时目录下面 let directoryURL = self.session.sessionContentURL let fileURL = directoryURL.appendingPathComponent("saved_image.jpg") do { try data.write(to: fileURL) } catch { } 当打开主app的时候我改怎么拿到这个saved_image.jpg图片呢? 当我热启动App时,我可以在- (void)sceneWillEnterForeground:(UIScene *)scene里面调用 for await update in LockedCameraCaptureManager.shared.sessionContentUpdates { switch update { case .initial(let urls): // Process captured content from existing session content directories. break case .added(let url): // Process captured content from a new session content directory. break case .removed(let url): // Process captured content from a removed session content directory. break default: // An unknown sessionContentUpdate was received. break } } 拿到url。

但是当我的主app没有启动时,我使用上述方法拿不到值。
所以我应该怎么拿这个值呢? 请问苹果有没有demo啊???
太难了!

LockedCameraCapture 主App怎么拿到capture信息
 
 
Q