You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
import { PendingCopy } from './pending-copy';
|
|
/**
|
|
* A service for copying text to the clipboard.
|
|
*/
|
|
import * as ɵngcc0 from '@angular/core';
|
|
export declare class Clipboard {
|
|
private readonly _document;
|
|
constructor(document: any);
|
|
/**
|
|
* Copies the provided text into the user's clipboard.
|
|
*
|
|
* @param text The string to copy.
|
|
* @returns Whether the operation was successful.
|
|
*/
|
|
copy(text: string): boolean;
|
|
/**
|
|
* Prepares a string to be copied later. This is useful for large strings
|
|
* which take too long to successfully render and be copied in the same tick.
|
|
*
|
|
* The caller must call `destroy` on the returned `PendingCopy`.
|
|
*
|
|
* @param text The string to copy.
|
|
* @returns the pending copy operation.
|
|
*/
|
|
beginCopy(text: string): PendingCopy;
|
|
static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<Clipboard, never>;
|
|
}
|
|
|
|
//# sourceMappingURL=clipboard.d.ts.map
|