open
Block while showing a native file open dialog. Return the selected file
path or null if cancelled. See dialogNativeFileOpenMultiple
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 open(alloc: std.mem.Allocator, opts: DialogOptions) std.mem.Allocator.Error!?[:0]const u8 {
return internal(.open, alloc, opts);
}