Skip to content

feat: get all clipboard data #1704

Open
@jcesarmobile

Description

@jcesarmobile

Feature Request

Description

At the moment the clipboard plugin only returns one element on read() method, but the clipboard could contain more elements as seen on https://github.com/ionic-team/capacitor/issues/6736, not only of the same type, they could also have different types (urls, images, text)

Platform(s)

ios
android
web

Preferred Solution

Add a new method readAll() (or similar name) that returns an array with all the elements in the clipboard

Alternatives

Modify the read() method to return an array of ReadResult instead of a single ReadResult, but that would be breaking, so should wait for next major release.

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions