enebin / Aespa

From camera to album, in just 2 lines
https://enebin.github.io/Aespa/documentation/aespa/
MIT License
94 stars 20 forks source link

Request: Support for using Aespa without photo library access #37

Closed Vortec4800 closed 7 months ago

Vortec4800 commented 7 months ago

I want to use this to manage the camera and get the result in my app, but I don't want it to ask the user for library access and I don't want it to save to the library automatically. Is this possible in the current library, or can it be added?

Vortec4800 commented 7 months ago

I dug through the library and it seems this is possible today, but I couldn't find it documented anywhere. I'll post the session config here in case someone else is looking for it:

private var session: AespaSession = {
    var options = AespaOption(albumName: "Unused")
    options.asset.synchronizeWithLocalAlbum = false
    return Aespa.session(with: options)
}()