Skip to content

feat: Support DetectionPattern in Clipboard plugin #389

Open
@bolchowka

Description

@bolchowka

Feature Request

Plugin

@capacitor/clipboard

Description

iOS 14 introduced an alert that indicates an app reads clipboard contents. It is possible to check clipboard content type without showing an alert using DetectionPattern API.

It would be great if @capacitor/clipboard plugin supported this API.

Platform(s)

iOS

Preferred Solution

A quick proposal based on DetectionPattern API.

const result: boolean = await Clipboard.detectPattern(DetectionPattern.Number);
const result: boolean = await Clipboard.detectPattern(DetectionPattern.ProbableWebSearch);
const result: boolean = await Clipboard.detectPattern(DetectionPattern.ProbableWebURL);

Alternatives

N/A

Additional Context

N/A

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