Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify the "SharePostModal" to use an interface for Clipboard functionality #121

Open
efonsecab opened this issue Jan 9, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@efonsecab
Copy link
Contributor

The "SharePostModal.razor.cs" currently invokes a javscript code in order to copy the post url to the clipboard, in the MAUI App, however, we want to use the native functionality.

Create a shared interface named IClipboardService, in the common project, add a method named
CopyEmbeddedPostUrlToClipboardAsync, inject that interface in the SharePostModal component and invoke the method.

Create the custom implementations for Blazor WebAssembly, and MAUI.
The Blazor WebAssembly implementation will invoke the javascript function, while the MAUI implementation will use the Clipboard API described here: https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/data/clipboard?view=net-maui-7.0

Add the required permissions to the Android app, if any,

@efonsecab efonsecab added enhancement New feature or request good first issue Good for newcomers labels Jan 9, 2023
@efonsecab efonsecab added this to the Core Functionality milestone Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Status: No status
Development

No branches or pull requests

1 participant