API রেফারেন্স
ক্লিপবোর্ড
সমর্থনের জন্য app.capabilities এবং অনুমতির জন্য app.access ও হোস্টের অনুমতি দেখুন। ব্যবহারের আগে নমুনা মান বদলান।
টাইপ ডেফিনিশন
graphql
type Mutation {
deleteClipboardItems(query: String!): ActionResult!
setClipboard(text: String!, label: String! = "", sensitive: Boolean! = false): Boolean!
}
type Query {
clipboardItemCount(query: String!): Int!
clipboardItems(query: String!, offset: Int!, limit: Int!): [ClipboardItem!]!
}
type Subscription {
clipboardChanged: ClipboardChange!
}
type ActionResult {
affectedCount: Int!
}
type ClipboardChange {
text: String!
sensitive: Boolean!
time: Instant!
}
type ClipboardItem {
id: ID!
text: String!
source: String!
label: String!
sensitive: Boolean!
createdAt: Instant!
}
scalar Instantঅপারেশন
mutation
deleteClipboardItems
মেলা ক্লিপবোর্ড ইতিহাস রেকর্ড মুছে দেয়; সব মুছতে স্পষ্ট all:true কোয়েরি দিন।
graphql
# Delete clipboard history entries matching the query DSL (`ids:` /
# `text:`; a bare word is a text LIKE). A blank query is rejected —
# send `all:true` to target everything.
mutation deleteClipboardItems($query: String!) {
deleteClipboardItems(query: $query) { affectedCount }
}mutation
setClipboard
ডিভাইস ক্লিপবোর্ডে লেখা লেখে ও ইতিহাসে সেই কাজ রেকর্ড করে।
graphql
# Record caller-attributed history only after a successful system write; suppress watcher echoes.
mutation setClipboard($text: String!, $label: String!, $sensitive: Boolean!) {
setClipboard(text: $text, label: $label, sensitive: $sensitive)
}query
clipboardItemCount
কোয়েরির সঙ্গে মেলা ক্লিপবোর্ড ইতিহাস এন্ট্রি গোনে।
graphql
query clipboardItemCount($query: String!) {
clipboardItemCount(query: $query)
}query
clipboardItems
নতুন আগে, পাতা ভাগ করে মেলা ক্লিপবোর্ড ইতিহাস এন্ট্রি পড়ে।
graphql
# Paged clipboard history, newest first.
query clipboardItems($query: String!, $offset: Int!, $limit: Int!) {
clipboardItems(query: $query, offset: $offset, limit: $limit) { id text source label sensitive createdAt }
}subscription
clipboardChanged
ক্লিপবোর্ড পরিবর্তনের তথ্য পায়।
graphql
subscription clipboardChanged {
clipboardChanged { text sensitive time }
}