Saving to the Camera Roll
Capturing the Best Moments
NatShare also supports saving images and other media to the camera roll. The SavePayload exposes this functionality:
// Create a save payload
var payload = new SavePayload(album: "My Awesome App");
You can optionally specify an album name where media will be saved.
The payload is a write-only collection of items to be saved to the camera roll. Currently, the payload supports images (Texture2D) and media files (with file paths):
// Add image
// Add a media file
Once all the items have been added to the payload, they can then be saved to the camera roll:
// Save to the camera roll
var success = await payload.Commit();
Copy link