Capacitor Full App - Ionic Angular
  • What is Capacitor Full App - Ionic Angular?
  • Understand the Frameworks
  • Template Highlights
  • Setup
    • Initial Setup
  • Running the app
  • Building App on device
  • Deploying app as PWA
    • Deploy PWA on Firebase
  • How to use this template
    • Two way to use this Template
  • Removing a Page / Component
  • Removing a plugin
  • Extra
    • Troubleshooting
    • FAQ
  • Changelog
  • Features
    • Startup Features
      • Layouts
      • Firebase
      • Addons
        • Globalization - Translation
        • Content Loaders
        • Custom Fonts
        • Infinite Scroll
        • Pull to Refresh
        • List Re-ordering
        • Date Time Pickers
        • Settings
      • Login & Signups
      • Sidemenu Layouts
      • Wordpress
        • How to integrate
      • Video Playlist
      • Grid and List Layouts
      • Chat Lists & Chat Pages
    • Pro Features
      • Pro Addons
        • AdMob
          • Integration
          • Setting up Google Admob
        • Music Player
        • Push Notifications
        • Local Notifications
        • Device
        • Clipboard
        • Social Login
        • In-App Browser
        • Sweet Alerts
        • Social Sharing
        • Google Places
        • Google Autocomplete
        • Image Cropper
      • Phaser Game Framework
      • WooCommerce
      • Payment Gateways
    • Others
      • Adding Icon and Splash
Powered by GitBook
On this page
  • Features
  • Methods

Was this helpful?

  1. Features
  2. Pro Features
  3. Pro Addons

Clipboard

Use clipboard to copy and paste content between pages or apps

The Clipboard API enables copy and pasting to/from the clipboard. On iOS this API also allows copying images and URLs.

Clipboard function is implemented using Capacitor's default Clipboard API

import { Plugins } from '@capacitor/core';

const { Clipboard } = Plugins;

Clipboard.write({
  string: "Hello, Moto"
});

let str = await Clipboard.read({
  type: "string"
});
console.log('Got string from clipboard:', str.value);

Features

Using Clipboard page functions, you can

  • Copy text written in a read-only format (e.g. a key or password)

  • Copy text written in an editable text-box (e.g. something you have entered as a user)

  • Paste text using a button OR paste using long-press action of the device

Methods

It has three methods

  • read() - Reads the data from Clipboard

  • write() - Writes selected data to Clipboard

  • addListener() - Listens to Read or Write event from Clipboard

PreviousDeviceNextSocial Login

Last updated 5 years ago

Was this helpful?