Google পিকার API-এর জন্য সম্পদের সারাংশ
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
Google পিকার API PickerBuilder
এবং Picker
সহ একটি বিল্ডার প্যাটার্ন ব্যবহার করে।
const picker = new google.picker.PickerBuilder()
.setOAuthtoken('TOKEN_FOR_USER')
.setAppId('1234567890') // Cloud Project number
.addView(google.picker.ViewId.DOCS)
.setCallback((data) => {
console.log(data);
})
.build();
picker.setVisible(true);
ক্লাস
নাম | বর্ণনা |
---|
DocsUploadView | Google ড্রাইভে ফাইল আপলোড করতে DocsUploadView ব্যবহার করুন। |
DocsView | Google ড্রাইভ থেকে ফাইল নির্বাচন করতে DocsView ব্যবহার করুন৷ |
Picker | Picker হল শীর্ষ স্তরের বস্তু যা ব্যবহারকারীর সাথে UI অ্যাকশনের প্রতিনিধিত্ব করে। এই বস্তু সরাসরি তৈরি করা হয় না, কিন্তু পরিবর্তে PickerBuilder ক্লাস ব্যবহার করুন. |
PickerBuilder | PickerBuilder Picker অবজেক্ট তৈরি করতে ব্যবহার করা হয়। অন্যথায় উল্লেখ করা ব্যতীত, নীচের রিটার্ন টাইপ পদ্ধতিগুলি PickerBuilder টাইপের, যা আপনাকে একের পর এক কল চেইন করতে দেয়। |
ResourceId | ResourceId হল নথির জন্য রিসোর্স আইডি তৈরি করার জন্য একটি ইউটিলিটি ক্লাস। |
View | সমস্ত দর্শনের জন্য একটি বিমূর্ত শ্রেণী। |
ViewGroup | একটি ViewGroup হল নেভিগেশন প্যানে ভিউয়ের একটি ভিজ্যুয়াল গ্রুপিং। |
Enums
নাম | বর্ণনা |
---|
Action | ResponseObject জন্য কর্মের ধরন। |
Audience | Audience হল একটি গণনাকৃত প্রকার যা DocumentObject এর দর্শকদের বর্ণনা করতে ব্যবহৃত হয়। |
DocsViewMode | DocsViewMode হল একটি DocsView-এর মধ্যে ডেটা প্রদর্শনের জন্য একটি গণনাকৃত প্রকার। DocsView.setMode এ কল করার সময় এই মানগুলি ব্যবহার করুন। |
Document | Document হল একটি গণনাকৃত প্রকার যা একটি DocumentObject এর ক্ষেত্র বর্ণনা করতে ব্যবহৃত হয়। |
Feature | Feature হল একটি গণনাকৃত প্রকার, বিভিন্ন দর্শনের জন্য বৈশিষ্ট্যগুলি চালু/বন্ধ করার জন্য। PickerBuilder.enableFeature এবং PickerBuilder.disableFeature এ কলে এই মানগুলি ব্যবহার করুন। |
Response | Response হল একটি গণনাকৃত প্রকার যা একটি ResponseObject এর ক্ষেত্র বর্ণনা করতে ব্যবহৃত হয়। |
ServiceId | ServiceId হল একটি গণনাকৃত প্রকার যে পরিষেবাটি থেকে আইটেমটি নির্বাচন করা হয়েছিল তা বর্ণনা করতে ব্যবহৃত হয়। |
Thumbnail | Thumbnail হল একটি গণনাকৃত প্রকার যা একটি ThumbnailObject ক্ষেত্র বর্ণনা করে। |
Type | নির্বাচিত আইটেমের প্রকার। |
ViewId | ViewId হল পিকারে উপলব্ধ বিভিন্ন দর্শনের জন্য একটি গণনাকৃত প্রকার। DocsView এবং PickerBuilder এর কলে এই মানগুলি ব্যবহার করুন। |
ViewToken | ViewToken হল একটি গণনাকৃত প্রকার যা একটি ResponseObject.viewToken এর উপাদান বর্ণনা করতে ব্যবহৃত হয়। |
ইন্টারফেস
নাম | বর্ণনা |
---|
DocumentObject | DocumentObject হল একটি ইন্টারফেস যা একটি নির্বাচিত আইটেমের বৈশিষ্ট্য বর্ণনা করে। |
ResponseObject | প্রতিক্রিয়া বস্তুটি কলব্যাক পদ্ধতিতে চলে গেছে। |
ThumbnailObject | ThumbnailObject হল একটি ইন্টারফেস যা একটি ফটো বা ভিডিওর বৈশিষ্ট্য বর্ণনা করে। |
উপনাম টাইপ করুন
নাম | বর্ণনা |
---|
Locales | PickerBuilder.setLocale এর জন্য সমর্থিত ISO 639 ভাষার কোড। |
ParentDocumentObject | ParentDocumentObject হল একটি ইন্টারফেস যা একটি নির্বাচিত আইটেমের জন্য একটি প্যারেন্ট ফোল্ডারের বৈশিষ্ট্য বর্ণনা করে। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Resource summary for Google Picker API\n\nThe Google Picker API uses a builder pattern with\n[`PickerBuilder`](./picker.pickerbuilder) and [`Picker`](./picker.picker). \n\n const picker = new google.picker.PickerBuilder()\n .setOAuthtoken('TOKEN_FOR_USER')\n .setAppId('1234567890') // Cloud Project number\n .addView(google.picker.ViewId.DOCS)\n .setCallback((data) =\u003e {\n console.log(data);\n })\n .build();\n\n picker.setVisible(true);\n\nClasses\n-------\n\n| Name | Description |\n|---------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [`DocsUploadView`](./picker.docsuploadview) | Use `DocsUploadView` to upload files to Google Drive. |\n| [`DocsView`](./picker.docsview) | Use `DocsView` to select files from Google Drive. |\n| [`Picker`](./picker.picker) | `Picker` is the top level object representing the UI action with the user. These objects are not created directly, but instead use the `PickerBuilder` class. |\n| [`PickerBuilder`](./picker.pickerbuilder) | `PickerBuilder` is used to create `Picker` objects. Except where noted otherwise, the return type of methods below is of type `PickerBuilder`, allowing you to chain one call after another. |\n| [`ResourceId`](./picker.resourceid) | `ResourceId` is a utility class for generating resource IDs for documents. |\n| [`View`](./picker.view) | An abstract class for all views. |\n| [`ViewGroup`](./picker.viewgroup) | A `ViewGroup` is a visual grouping of views in the navigation pane. |\n\nEnums\n-----\n\n| Name | Description |\n|-----------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [`Action`](./picker.action) | The action type for the `ResponseObject`. |\n| [`Audience`](./picker.audience) | `Audience` is an enumerated type used to describe the audience of the `DocumentObject`. |\n| [`DocsViewMode`](./picker.docsviewmode) | `DocsViewMode` is an enumerated type for displaying data within a DocsView. Use these values in calls to `DocsView.setMode`. |\n| [`Document`](./picker.document) | `Document` is an enumerated type used to describe the fields of a `DocumentObject`. |\n| [`Feature`](./picker.feature) | `Feature` is an enumerated type, for turning on/off features for various views. Use these values in calls to `PickerBuilder.enableFeature` and `PickerBuilder.disableFeature`. |\n| [`Response`](./picker.response) | `Response` is an enumerated type used to describe the fields of a `ResponseObject`. |\n| [`ServiceId`](./picker.serviceid) | `ServiceId` is an enumerated type used to describe the service the item was selected from. |\n| [`Thumbnail`](./picker.thumbnail) | `Thumbnail` is an enumerated type describing the fields of a `ThumbnailObject`. |\n| [`Type`](./picker.type) | The type of the selected item. |\n| [`ViewId`](./picker.viewid) | `ViewId` is an enumerated type for the various views available in the Picker. Use these values in calls to `DocsView` and `PickerBuilder`. |\n| [`ViewToken`](./picker.viewtoken) | `ViewToken` is an enumerated type used to describe the elements of a `ResponseObject.viewToken`. |\n\nInterfaces\n----------\n\n| Name | Description |\n|-----------------------------------------------|----------------------------------------------------------------------------------|\n| [`DocumentObject`](./picker.documentobject) | `DocumentObject` is an interface describing the attributes of a selected item. |\n| [`ResponseObject`](./picker.responseobject) | The response object passed to the callback method. |\n| [`ThumbnailObject`](./picker.thumbnailobject) | `ThumbnailObject` is an interface describing the attributes of a photo or video. |\n\nType aliases\n------------\n\n| Name | Description |\n|---------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [`Locales`](./picker.locales) | The supported ISO 639 language codes for `PickerBuilder.setLocale`. |\n| [`ParentDocumentObject`](./picker.parentdocumentobject) | `ParentDocumentObject` is an interface describing the attributes of a parent folder for a selected item. |"]]