Symbian platform (C++)
SDK native APIs, runtime and tooling
Loading...
Searching...
No Matches
clipboard.h
Go to the documentation of this file.
1// Copyright 2026 The Symbian SDK Authors.
2// Licensed under the Apache License, Version 2.0.
3
4#ifndef SYMBIAN_API_SYSTEM_CLIPBOARD_H_
5#define SYMBIAN_API_SYSTEM_CLIPBOARD_H_
6
7#include <string>
8#include <string_view>
9
10#include "absl/status/status.h"
11#include "absl/status/statusor.h"
12
13namespace symbian::api::system {
14
15// Replaces the device's interoperable plain-text clipboard content. The
16// caller keeps text valid until the synchronous operation returns.
17absl::Status CopyTextToClipboard(std::u16string_view text);
18
19// Reads interoperable plain text from the device clipboard. An empty clipboard
20// or one without plain text returns an empty string. Service failures return a
21// status. Text is limited to 64 Ki UTF-16 code units.
22absl::StatusOr<std::u16string> ReadTextFromClipboard();
23
24} // namespace symbian::api::system
25
26#endif // SYMBIAN_API_SYSTEM_CLIPBOARD_H_
Definition active_service.h:12
absl::StatusOr< std::u16string > ReadTextFromClipboard()
Definition clipboard.cc:74
absl::Status CopyTextToClipboard(std::u16string_view text)
Definition clipboard.cc:59