blob: 19dc45b0e292c487ff06816a12b598c297a23ca6 [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fuchsia.modular;
/// An interface that provides clients with the ability to store and
/// retrieve text.
protocol Clipboard {
/// Pushes `text` onto the clipboard.
Push(string text);
/// Peeks at the current topmost item on the clipboard and returns
/// it, or null if no such item exists.
Peek() -> (string? text);