पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

action_process_text कवर
पैकेज विवरणv0.0.6

action_process_text

एंड्रॉइड में ACTION_PROCESS_TEXT के लिए एक फ्लटर प्लगइन।

30-दिन डाउनलोड
115
लाइक
31
Pub अंक
40

पैकेज इंस्टॉल करें

flutter pub add action_process_text

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

एक फ्लटर प्लगइन जो एंड्रॉइड पर ACTION_PROCESS_TEXT कार्यक्षमता को सक्षम करता है, जिससे ऐप्स को सिस्टम के टेक्स्ट प्रोसेसिंग कार्यों के साथ एकीकृत करने में सक्षम बनाता है। यह चयनित टेक्स्ट के माध्यम से कस्टम ऐप व्यवहार को ट्रिगर करने की अनुमति देता है, जैसे कि साझा करना, अनुवाद करना या सामग्री का विश्लेषण डायरेक्ट एंड्रॉइड टेक्स्ट सेलेक्शन मेनू से करना। यह प्लगइन नेटिव एंड्रॉइड क्षमताओं को फ्लटर ऐप्स के साथ जोड़ता है, संदर्भित टेक्स्ट क्रियाकलापों के माध्यम से उपयोगकर्ता अंतरक्रिया को बढ़ाता है। यह विशेष रूप से एंड्रॉइड के लिए डिज़ाइन किया गया है और स्टैंडर्ड फ्लटर सेटअप के अलावा कोई अतिरिक्त कॉन्फ़िगरेशन आवश्यक नहीं है।

उपयोग

  • Android में कस्टम टेक्स्ट कार्रवाई को एकीकृत करना
  • संदर्भ-जागरूक पाठ प्रोसेसिंग सक्षम करना
  • Android के पाठ चयन मेनू को विस्तारित करना
  • पाठ विश्लेषण कार्य प्रवाहों का समर्थन करना
  • पाठ चयन के माध्यम से साझा या अनुवाद विकल्प जोड़ें

मुख्य विशेषताएँ

  • एंड्रॉइड-विशिष्ट ACTION_PROCESS_TEXT समर्थन
  • Flutter के साथ निरंतर एकीकरण
  • संदर्भ सामग्री कार्रवाई ट्रिगर
  • आवश्यक सेटअप न्यूनतम
  • मूल एंड्रॉइड व्यवहार प्रतिलिपि

इनके लिए उपयुक्त

  • Android-केंद्रित Flutter ऐप्स
  • पाठ संसाधन विस्तार
  • गहन एंड्रॉइड एकीकरण की आवश्यकता वाले ऐप्स
  • एंड्रॉइड टेक्स्ट कार्रवाई के लिए विकासकर्ता
  • कस्टमाइज़ेबल टेक्स्ट इंटरैक्शन फीचर्स

विचार योग्य बातें

  • Android प्लेटफॉर्म के लिए सीमित
  • Android SDK ज्ञान की आवश्यकता है
  • iOS समर्थन नहीं है
  • Android सिस्टम व्यवहार पर निर्भर करता है
  • अलग-अलग एंड्रॉइड संस्करणों पर परीक्षण की आवश्यकता हो सकती है

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

ACTION_PROCESS_TEXT Flutter

A flutter plugin for ACTION_PROCESS_TEXT implementation in android.

What is it used for?

It can be used when you want your users to use a shortcut for opening your app when selecting text anywhere in the android environment.

Constraints

1. It works only for android.
2. It can only be used inside a Stateful widget.
3. Use setState() after updating the value from the action.

Include in your project

dependencies:
  action_process_text: <latest version>

Run pub get and get packages.

Add this to AndroidManifest.xml in the android\app\src\main\ folder.

  <activity android:name="com.example.action_process_text.ActionProcessTextPlugin"
            android:label="Action_Text" android:theme="@style/LaunchTheme">
            <intent-filter>
                <action android:name="android.intent.action.PROCESS_TEXT" />
                <data android:mimeType="text/plain"/>
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
   </activity>

Change the android:label from Action_Text to the action text that you want to display.

Then import the package to use it.

import 'package:action_process_text/action_process_text.dart';

Usage

Use the constructor of the widget to initialize the action_process_text. ActionProcessText.getInputText is used to get the selected text from the android action.

class MainPage extends StatefulWidget {
  @override
  _MainPageState createState() => _MainPageState();
}

class _MainPageState extends State<MainPage> {
  _MainPageState() {
    initActionProcessText();
  }

  Future<void> initActionProcessText() async {
    inputText = await ActionProcessText.getInputText;
    setState(() {});
  }

  String inputText = '';

  @override
  Widget build(BuildContext context) {
    return Scaffold();
  }
  }

If you want to check whether the call was made from the native side, you can use the ActionProcessText.calledFromNative . This enables one to navigate to a different screen than usual if needed, by initiating the channel at the start and check if the value is true. If true, the input text will be available. When it's false, the app is opened not by the action_process_text intend, but by the user as in usual cases.

Bugs/Requests

If you encounter any problems feel free to open an issue. Pull request are also welcome.

श्रेणियाँ

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।