মাঙ্কিরানার
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
স্ট্যাটিক ইউটিলিটি পদ্ধতি ধারণ করে এমন একটি মাঙ্কিরানার ক্লাস।
সারসংক্ষেপ
পদ্ধতি |
---|
অকার্যকর | সতর্কতা ( স্ট্রিং বার্তা, স্ট্রিং শিরোনাম, স্ট্রিং ওকেটাইটেল) বর্তমান প্রোগ্রাম চলমান প্রক্রিয়ার জন্য একটি সতর্কতা ডায়ালগ প্রদর্শন করে। |
পূর্ণসংখ্যা | পছন্দ ( স্ট্রিং বার্তা, পুনরাবৃত্তিযোগ্য পছন্দ, স্ট্রিং শিরোনাম) বর্তমান প্রোগ্রাম চালানোর প্রক্রিয়ার পছন্দের তালিকা সহ একটি ডায়ালগ প্রদর্শন করে। |
অকার্যকর | সাহায্য ( স্ট্রিং বিন্যাস) নির্দিষ্ট বিন্যাস ব্যবহার করে Python এর pydoc টুলের অনুরূপ একটি শৈলীতে monkeyrunner API রেফারেন্স প্রদর্শন করে। |
স্ট্রিং | ইনপুট ( স্ট্রিং বার্তা, স্ট্রিং প্রাথমিক মান, স্ট্রিং শিরোনাম, স্ট্রিং ওকেটাইটেল, স্ট্রিং বাতিল শিরোনাম) একটি ডায়ালগ প্রদর্শন করে যা ইনপুট গ্রহণ করে। |
অকার্যকর | ঘুম ( ভাসমান সেকেন্ড) সেকেন্ডের নির্দিষ্ট সংখ্যার জন্য বর্তমান প্রোগ্রামকে বিরতি দেয়। |
MonkeyDevice | waitForConnection ( ফ্লোট টাইমআউট, স্ট্রিং ডিভাইসআইডি) monkeyrunner ব্যাকএন্ড এবং নির্দিষ্ট ডিভাইস বা এমুলেটরের মধ্যে একটি সংযোগ তৈরি করার চেষ্টা করে। |
পাবলিক পদ্ধতি
স্ট্রিং সতর্কতা ( স্ট্রিং বার্তা, স্ট্রিং শিরোনাম, স্ট্রিং ওকেটাইটেল)
বর্তমান প্রোগ্রাম চলমান প্রক্রিয়ার জন্য একটি সতর্কতা ডায়ালগ প্রদর্শন করে। ডায়ালগটি মডেল, তাই ব্যবহারকারী ডায়ালগের বোতামে ক্লিক না করা পর্যন্ত প্রোগ্রামটি বিরতি দেয়।
যুক্তি
বার্তা | ডায়ালগে প্রদর্শিত বার্তা। |
---|
শিরোনাম | ডায়ালগের শিরোনাম। ডিফল্ট মান হল "সতর্কতা"। |
---|
okTitle | ডায়ালগ বোতামে প্রদর্শিত পাঠ্য। ডিফল্ট মান হল "ঠিক আছে"। |
---|
পূর্ণসংখ্যা পছন্দ ( স্ট্রিং বার্তা, পুনরাবৃত্তিযোগ্য পছন্দ, স্ট্রিং শিরোনাম)
বর্তমান প্রোগ্রাম চালানোর প্রক্রিয়ার পছন্দের তালিকা সহ একটি ডায়ালগ প্রদর্শন করে। ডায়ালগটি মডেল, তাই ব্যবহারকারী ডায়ালগের একটি বোতামে ক্লিক না করা পর্যন্ত প্রোগ্রামটি বিরতি দেয়।
যুক্তি
বার্তা | সংলাপে প্রদর্শিত প্রম্পট বার্তা। |
---|
পছন্দ | একটি পাইথন পুনরাবৃত্তিযোগ্য এক বা একাধিক বস্তু যা স্ট্রিং হিসাবে প্রদর্শিত হয়। প্রস্তাবিত ফর্ম স্ট্রিং একটি অ্যারে. |
---|
শিরোনাম | ডায়ালগের শিরোনাম। ডিফল্ট হল "ইনপুট"। |
---|
রিটার্নস
- যদি ব্যবহারকারী একটি নির্বাচন করে এবং "ঠিক আছে" বোতামে ক্লিক করে, পদ্ধতিটি পুনরাবৃত্তিযোগ্য নির্বাচনের 0-ভিত্তিক সূচী প্রদান করে। ব্যবহারকারী "বাতিল" বোতামে ক্লিক করলে, পদ্ধতিটি -1 প্রদান করে।
নির্দিষ্ট বিন্যাস ব্যবহার করে Python এর pydoc
টুলের অনুরূপ একটি শৈলীতে monkeyrunner API রেফারেন্স প্রদর্শন করে।
যুক্তি
বিন্যাস | আউটপুটে ব্যবহার করার জন্য মার্কআপ বিন্যাস। সম্ভাব্য মানগুলি হল প্লেইন টেক্সটের জন্য "টেক্সট" বা HTML এর জন্য "html"। |
---|
একটি ডায়ালগ প্রদর্শন করে যা ইনপুট গ্রহণ করে এবং এটি প্রোগ্রামে ফেরত দেয়। ডায়ালগটি মডেল, তাই ব্যবহারকারী ডায়ালগের একটি বোতামে ক্লিক না করা পর্যন্ত প্রোগ্রামটি বিরতি দেয়।
ডায়ালগে দুটি বোতাম রয়েছে, যার একটি okTitle মান এবং অন্যটি cancelTitle মান প্রদর্শন করে। ব্যবহারকারী okTitle বোতামে ক্লিক করলে, ইনপুট বাক্সের বর্তমান মানটি ফেরত দেওয়া হয়। ব্যবহারকারী বাতিল শিরোনাম বোতামে ক্লিক করলে, একটি খালি স্ট্রিং ফিরে আসে।
যুক্তি
বার্তা | সংলাপে প্রদর্শিত প্রম্পট বার্তা। |
---|
প্রাথমিক মান | ডায়ালগে প্রদর্শিত প্রাথমিক মান। ডিফল্ট একটি খালি স্ট্রিং। |
---|
শিরোনাম | ডায়ালগের শিরোনাম। ডিফল্ট হল "ইনপুট"। |
---|
okTitle | পাঠ্যটি okTitle বোতামে প্রদর্শিত হবে। ডিফল্ট "ঠিক আছে"। |
---|
বাতিল শিরোনাম | বাতিল শিরোনাম বোতামে প্রদর্শিত পাঠ্য। ডিফল্ট হল "বাতিল"। |
---|
রিটার্নস
- ব্যবহারকারী যদি okTitle বোতামে ক্লিক করেন, তাহলে পদ্ধতিটি ডায়ালগের ইনপুট বাক্সের বর্তমান মান প্রদান করে। ব্যবহারকারী বাতিল টাইটেল বোতামে ক্লিক করলে, পদ্ধতিটি একটি খালি স্ট্রিং প্রদান করে।
অকার্যকর ঘুম (সেকেন্ড ভাসমান )
সেকেন্ডের নির্দিষ্ট সংখ্যার জন্য বর্তমান প্রোগ্রামকে বিরতি দেয়।
যুক্তি
সেকেন্ড | বিরাম দিতে সেকেন্ডের সংখ্যা। |
---|
MonkeyDevice
অপেক্ষার জন্য সংযোগ ( ফ্লোট টাইমআউট, স্ট্রিং ডিভাইসআইডি)
monkeyrunner
ব্যাকএন্ড এবং নির্দিষ্ট ডিভাইস বা এমুলেটরের মধ্যে একটি সংযোগ তৈরি করার চেষ্টা করে।
যুক্তি
সময় শেষ | একটি সংযোগের জন্য অপেক্ষা করতে সেকেন্ডের সংখ্যা৷ ডিফল্ট চিরকাল অপেক্ষা করা হয়. |
---|
ডিভাইস আইডি | একটি নিয়মিত অভিব্যক্তি যা ডিভাইস বা এমুলেটরের সিরিয়াল নম্বর নির্দিষ্ট করে। ডিভাইস এবং এমুলেটর সিরিয়াল নম্বরের বর্ণনার জন্য অ্যান্ড্রয়েড ডিবাগ ব্রিজ বিষয়টি দেখুন। |
---|
রিটার্নস
- ডিভাইস বা এমুলেটরের জন্য একটি
MonkeyDevice
উদাহরণ। ডিভাইস বা এমুলেটরের সাথে নিয়ন্ত্রণ এবং যোগাযোগ করতে এই বস্তুটি ব্যবহার করুন।
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# MonkeyRunner\n\nA monkeyrunner class that contains static utility methods.\n\nSummary\n-------\n\n| Methods ||||||||||||\n|------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|---|---|---|---|---|---|---|---|---|\n| void | [alert](#alert) (*string* message, *string* title, *string* okTitle) Displays an alert dialog to the process running the current program. |\n| *integer* | [choice](#choice) (*string* message, *iterable* choices, *string* title) Displays a dialog with a list of choices to the process running the current program. |\n| void | [help](#help) (*string* format) Displays the monkeyrunner API reference in a style similar to that of Python's `pydoc` tool, using the specified format. |\n| *string* | [input](#input) (*string* message, *string* initialValue, *string* title, *string* okTitle, *string* cancelTitle) Displays a dialog that accepts input. |\n| void | [sleep](#sleep) (*float* seconds) Pauses the current program for the specified number of seconds. |\n| ` `[MonkeyDevice](/tools/help/MonkeyDevice)` ` | [waitForConnection](#waitForConnection) (*float* timeout, *string* deviceId) Tries to make a connection between the `monkeyrunner` backend and the specified device or emulator. |\n\nPublic methods\n--------------\n\n#### *string*\nalert\n( *string* message, *string* title, *string* okTitle)\n\n\nDisplays an alert dialog to the process running the current\nprogram. The dialog is modal, so the program pauses until the user clicks the dialog's\nbutton. \n\n##### Arguments\n\n| message | The message to display in the dialog. |\n| title | The dialog's title. The default value is \"Alert\". |\n| okTitle | The text displayed in the dialog button. The default value is \"OK\". |\n|---------|---------------------------------------------------------------------|\n\n#### *integer*\nchoice\n(*string* message, *iterable* choices, *string* title)\n\n\nDisplays a dialog with a list of choices to the process running the current program. The\ndialog is modal, so the program pauses until the user clicks one of the dialog's\nbuttons. \n\n##### Arguments\n\n| message | The prompt message displayed in the dialog. |\n| choices | A Python iterable containing one or more objects that are displayed as strings. The recommended form is an array of strings. |\n| title | The dialog's title. The default is \"Input\". |\n|---------|------------------------------------------------------------------------------------------------------------------------------|\n\n##### Returns\n\n- If the user makes a selection and clicks the \"OK\" button, the method returns the 0-based index of the selection within the iterable. If the user clicks the \"Cancel\" button, the method returns -1. \n\n#### void\nhelp\n(*string* format)\n\n\nDisplays the monkeyrunner API reference in a style similar to that of Python's\n`pydoc` tool, using the specified format. \n\n##### Arguments\n\n| format | The markup format to use in the output. The possible values are \"text\" for plain text or \"html\" for HTML. |\n|--------|-----------------------------------------------------------------------------------------------------------|\n\n#### *string*\ninput\n(*string* message *string* initialValue, *string* title, *string* okTitle, *string* cancelTitle)\n\n\nDisplays a dialog that accepts input and returns it to the program. The dialog is\nmodal, so the program pauses until the user clicks one of the dialog's buttons.\n\n\nThe dialog contains two buttons, one of which displays the okTitle value\nand the other the cancelTitle value. If the user clicks the okTitle button,\nthe current value of the input box is returned. If the user clicks the cancelTitle\nbutton, an empty string is returned. \n\n##### Arguments\n\n| message | The prompt message displayed in the dialog. |\n| initialValue | The initial value to display in the dialog. The default is an empty string. |\n| title | The dialog's title. The default is \"Input\". |\n| okTitle | The text displayed in the okTitle button. The default is \"OK\". |\n| cancelTitle | The text displayed in the cancelTitle button. The default is \"Cancel\". |\n|--------------|-----------------------------------------------------------------------------|\n\n##### Returns\n\n- If the user clicks the okTitle button, then the method returns the current value of the dialog's input box. If the user clicks the cancelTitle button, the method returns an empty string. \n\n#### void\nsleep\n( *float* seconds )\n\n\nPauses the current program for the specified number of seconds. \n\n##### Arguments\n\n| seconds | The number of seconds to pause. |\n|---------|---------------------------------|\n\n#### `\n`[MonkeyDevice](/tools/help/MonkeyDevice)`\n`\nwaitForConnection\n(*float* timeout, *string* deviceId)\n\n\nTries to make a connection between the `monkeyrunner` backend and the\nspecified device or emulator. \n\n##### Arguments\n\n| timeout | The number of seconds to wait for a connection. The default is to wait forever. |\n| deviceId | A regular expression that specifies the serial number of the device or emulator. See the topic [Android Debug Bridge](/tools/help/adb) for a description of device and emulator serial numbers. |\n|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n\n##### Returns\n\n- A [MonkeyDevice](/tools/help/MonkeyDevice) instance for the device or emulator. Use this object to control and communicate with the device or emulator."]]