Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
995 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | /**
|
---|
| 2 | * @license
|
---|
| 3 | * Copyright Google LLC All Rights Reserved.
|
---|
| 4 | *
|
---|
| 5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 6 | * found in the LICENSE file at https://angular.io/license
|
---|
| 7 | */
|
---|
| 8 | import { PendingCopy } from './pending-copy';
|
---|
| 9 | /**
|
---|
| 10 | * A service for copying text to the clipboard.
|
---|
| 11 | */
|
---|
| 12 | export declare class Clipboard {
|
---|
| 13 | private readonly _document;
|
---|
| 14 | constructor(document: any);
|
---|
| 15 | /**
|
---|
| 16 | * Copies the provided text into the user's clipboard.
|
---|
| 17 | *
|
---|
| 18 | * @param text The string to copy.
|
---|
| 19 | * @returns Whether the operation was successful.
|
---|
| 20 | */
|
---|
| 21 | copy(text: string): boolean;
|
---|
| 22 | /**
|
---|
| 23 | * Prepares a string to be copied later. This is useful for large strings
|
---|
| 24 | * which take too long to successfully render and be copied in the same tick.
|
---|
| 25 | *
|
---|
| 26 | * The caller must call `destroy` on the returned `PendingCopy`.
|
---|
| 27 | *
|
---|
| 28 | * @param text The string to copy.
|
---|
| 29 | * @returns the pending copy operation.
|
---|
| 30 | */
|
---|
| 31 | beginCopy(text: string): PendingCopy;
|
---|
| 32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.