forked from unoplatform/uno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support for Native FileSavePicker
- Loading branch information
1 parent
a59bd2d
commit d9e32fd
Showing
9 changed files
with
159 additions
and
9 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
6 changes: 6 additions & 0 deletions
6
src/Uno.UI/ts/Windows/Storage/Pickers/NativeFilePickerAcceptType.ts
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,6 @@ | ||
namespace Uno.Storage.Pickers { | ||
export class NativeFilePickerAcceptType { | ||
description: string; | ||
accept: NativeFilePickerAcceptTypeItem[]; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/Uno.UI/ts/Windows/Storage/Pickers/NativeFilePickerAcceptTypeItem.ts
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,6 @@ | ||
namespace Uno.Storage.Pickers { | ||
export class NativeFilePickerAcceptTypeItem { | ||
mimeType: string; | ||
extensions: string[]; | ||
} | ||
} |
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
14 changes: 14 additions & 0 deletions
14
src/Uno.UWP/Storage/Pickers/Internal/NativeFilePickerAcceptType.wasm.cs
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,14 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Uno.Storage.Pickers.Internal | ||
{ | ||
[DataContract] | ||
internal class NativeFilePickerAcceptType | ||
{ | ||
[DataMember(Name = "description")] | ||
public string Description { get; set; } | ||
|
||
[DataMember(Name = "accept")] | ||
public NativeFilePickerAcceptTypeItem[] Accept { get; set; } | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/Uno.UWP/Storage/Pickers/Internal/NativeFilePickerAcceptTypeItem.wasm.cs
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,14 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Uno.Storage.Pickers.Internal | ||
{ | ||
[DataContract] | ||
internal class NativeFilePickerAcceptTypeItem | ||
{ | ||
[DataMember(Name = "mimeType")] | ||
public string MimeType { get; set; } | ||
|
||
[DataMember(Name = "extensions")] | ||
public string[] Extensions { get; set; } | ||
} | ||
} |