-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Start implementing a PHPickerResult-based file type
- Loading branch information
1 parent
c84629f
commit 735ee53
Showing
7 changed files
with
112 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#nullable enable | ||
|
||
namespace Windows.Storage.Pickers; | ||
|
||
/// <summary> | ||
/// Contains Uno Platform-specific extesions for the <see cref="FileOpenPicker"/> class. | ||
/// </summary> | ||
public static class FileOpenPickerExtensions | ||
{ | ||
/// <summary> | ||
/// Sets the file limit a user can select when picking multiple files. | ||
/// </summary> | ||
/// <param name="limit">The maximum number of files that the user can pick.</param> | ||
#if !__IOS__ | ||
[global::Uno.NotImplemented] | ||
#endif | ||
public static void SetMultipleFilesLimit(this FileOpenPicker picker, int limit) | ||
{ | ||
#if __IOS__ | ||
picker.SetMultipleFileLimit(limit); | ||
#endif | ||
} | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
/// <param name="picker"></param> | ||
/// <param name="readOnly"></param> | ||
#if !__IOS__ | ||
[global::Uno.NotImplemented] | ||
#endif | ||
public static void SetReadOnlyMode(this FileOpenPicker picker, bool readOnly) | ||
{ | ||
#if __IOS__ | ||
picker.SetReadOnlyMode(readOnly); | ||
#endif | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters