Customize the dialogs with platform-specific settings
FileKit allows you to customize dialog behavior with platform-specific settings. Each platform has its own settings class that can be configured according to your needs.
On JVM platforms (Windows, macOS, Linux), you can customize:
parentWindow
: Set the parent window for the dialog (useful for modal behavior)macOS
: Configure macOS-specific settingsFor desktop applications, it’s recommended to pass the window reference:
On macOS, you can configure:
canCreateDirectories
: Allow or prevent directory creation in dialogs (default: true)These platforms currently don’t have any specific settings to configure. Use the default settings:
When working with Kotlin Multiplatform projects, you might need to handle platform-specific settings differently. Here’s how to use expect/actual to manage dialog settings:
For platforms that need specific configuration, use expect/actual:
You can then use the platform-specific settings in your shared code:
This approach allows you to:
Platform-specific settings are continuously evolving. You can ask for a feature or report a bug on the GitHub repository.
Customize the dialogs with platform-specific settings
FileKit allows you to customize dialog behavior with platform-specific settings. Each platform has its own settings class that can be configured according to your needs.
On JVM platforms (Windows, macOS, Linux), you can customize:
parentWindow
: Set the parent window for the dialog (useful for modal behavior)macOS
: Configure macOS-specific settingsFor desktop applications, it’s recommended to pass the window reference:
On macOS, you can configure:
canCreateDirectories
: Allow or prevent directory creation in dialogs (default: true)These platforms currently don’t have any specific settings to configure. Use the default settings:
When working with Kotlin Multiplatform projects, you might need to handle platform-specific settings differently. Here’s how to use expect/actual to manage dialog settings:
For platforms that need specific configuration, use expect/actual:
You can then use the platform-specific settings in your shared code:
This approach allows you to:
Platform-specific settings are continuously evolving. You can ask for a feature or report a bug on the GitHub repository.