NativeFileSO

Keiwando.NFSO.NativeFileSOMacWin

instance method

OpenFile

public void OpenFile (SupportedFileType[] supportedTypes, Action<bool, OpenedFile> onCompletion) 

Summary

Presents a native dialog to the user which allows them to select a single file to be opened. The selected file contents are then loaded into memory managed by an instance of the OpenedFile class.

Parameters

supportedTypes

The file types used to filter the available files shown to the user.

onCompletion

A callback for when the presented dialog has been dismissed. The first parameter of the callback specifies whether a file was opened or the selection was cancelled.

Remarks

See NativeFileSO.OpenFile(SupportedFileType[], Action<bool, OpenedFile>) for more information on the usage of this method.