-
Notifications
You must be signed in to change notification settings - Fork 506
Screenshot API #125
Comments
I would like to implement this API. Can you assign this to me? |
This one needs some more discussion and specifications before it can be implemented.
|
In the past I did a PR for this API. Using this as a reference....
When I implemented I did not make use of the native APIs, to ensure that the implementation was similar on all platforms.
Yes, because in all 3 platforms we use async methods. To get the
public static Task<string> CaptureAsync(ScreenOutputType type = ScreenOutputType.PNG, string fileName = null) =>
PlataformCaptureAsync(type, fileName);
public static Task<byte[]> GetImageBytesAsync(ScreenOutputType type = ScreenOutputType.PNG) =>
PlataformGetImageBytesAsync(type); The developer can use the
|
I think if we can reasonably get a PNG back on each platform, we should just use that and not have an option for JPG (unless there's a compelling reason for needing both). I also don't think we should have two methods returning different results. If anything we maybe need to return a |
First, I have 2 questions:
How about we return a struct containing the information of the media types, can be used in Photo Picker and other APIs that handle media files. Like that: Task<MediaFile> CaptureAsync(string fileName)
Task<Stream> ReadStreamAsync(MediaFile file)
Task<byte[]> ReadBytesAsync(MediaFile file) struct MediaFile
{
string FileName;
string Path;
//Add other stuffs if necessary
} |
Yeah I think this is the general idea. We are planning on working on the Photo Picker as one of the next features, so I'd like to see how that one gets spec'd out before we settle on a spec for this in case we can reuse the struct from it (like a common |
Saving Screenshot should be an option, develop should have both option:
Sometimes you don't want to save the screenshot but just share it then why you need to save it |
If you use Google Analytics app, you'll see that screenshot for some screen is not just the screenshot but the whole page shot which means the image will be vertically saving the whole page even the place which is not shown on the screen size. It will be great if you add this so Xamarin Essentials will have a boolean value like this:
fullpage default is false |
This would be an awesome, very useful, addition. Question - the UWP implementation would just capture the application window, not the entire desktop, right? |
Can be closed |
Thanks! |
Would we want a Screenshot of the current window/screen?
The text was updated successfully, but these errors were encountered: