save
Block while showing a native file save dialog. Return the selected file path or null if cancelled.
Not thread safe, but can be used from any thread.
Returned string is created by passed allocator. Not implemented for web (returns null).
Parameters
- alloc:std.mem.Allocator
- std.mem.Allocator
- opts:DialogOptions
- DialogOptions
Source
Implementation
pub fn save(alloc: std.mem.Allocator, opts: DialogOptions) std.mem.Allocator.Error!?[:0]const u8 {
return internal(.save, alloc, opts);
}