blob: e4563fe8bdbee39b102d29737ed18c15dfd3d8bc [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.
[Discoverable]
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);
};