OpenFilePickerEventSchema
Opens the platform file picker and emits the chosen file downstream.
fileType restricts what can be picked: images, videos, both, or arbitrary files narrowed by a list of extensions. pickMode currently only offers Single.
outputType decides the shape handed to the next events:
PlatformFile(default) — the platform file handle.ArrayOfBytes— the file read into aByteArray.FlowOfBytes— a streaming flow of chunks, for large files.MapObject— the bytes decoded as a JSON map.Base64— the bytes encoded as a Base64String.
incomingData consumed: not used.
Triggers fired:
OnSuccessEventTrigger— when a file was picked and read; the content, in the shape chosen by outputType, is passed as incomingData.OnCancelledEventTrigger— when the user dismisses the picker without choosing a file. No data is passed downstream.OnFailureEventTrigger— whenMapObjectdecoding fails, or when the picker throws; theThrowableis passed as incomingData.
Constructors
Types
Properties
This event's own children — each declaring, via its own trigger, which of this event's outgoing triggers runs it. null when this event declares no children.
The condition that must occur for this event to run — matched by structural equality (data class/data object equality) against whatever trigger value fired, never by any kind of subscription or listener registry.