Skip to content

Return the screenshot result before the screenshot action is completed, and the result is null #47

@gongke757-png

Description

@gongke757-png

critical code
CapturedData? capturedD = await screenCapturer.capture( mode: CaptureMode.region, copyToClipboard: true, ); print(capturedD);
The screenCapturer.capture method will return immediately after being called, instead of waiting for the screenshot action to complete

So the following code doesn't work for me

CapturedData? capturedD = await screenCapturer.capture( mode: CaptureMode.region, copyToClipboard: true, ); await Future.delayed(Duration(milliseconds: 3000)); print(capturedD);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions