SharingX

Published on February 18, 2022

🏷️ Tags: #extensions

A non-visible extension that provides some additional tools along with the App Inventor built-in Sharing component.

Made with Niotron IDE at https://ide.niotron.com.

Current version: 1 Package name: com.gordonlu.sharingx.aix

For more information, read this MIT App Inventor Community thread.

πŸ“– Documentation

Event blocks

AppNotFound - This event returns the social media package name if an app is not installed.

Parameters: packageName = text

Method blocks

ShareFile - Shares a file through any capable application installed on the phone by displaying a list of the available apps and allowing the user to choose one from the list. The selected app will open with the file inserted on it. The socket file should be an absolute path pointing to the file. If the file is not found, a toast will appear as 'File not found'.

Parameters: file = text

ShareFileWithMessage - Shares both a file and a message through any capable application installed on the phone by displaying a list of available apps and allowing the user to choose one from the list. The selected app will open with the file and message inserted on it. The socket file should be an absolute path pointing to the file location. If the file is not found, a toast will appear as 'File not found'.

Parameters: file = text, message = text

ShareMessage - Shares a message through any capable application installed on the phone by displaying a list of the available apps and allowing the user to choose one from the list. The selected app will open with the message inserted on it.

Parameters: message = text

ShareMessageToTwitter - Shares the message through Twitter. If the app is not found, the AppNotFound event is fired.

Parameters: message = text

Note: this did not work on one of my emulators. I will check what is going on. Thank you!

ShareMessageToWhatsapp - Shares the message through Whatsapp. If the app is not found, the AppNotFound event is fired.

Parameters: message = text

TERMS AND CONDITIONS

By downloading or sharing my extension, you agree to follow these terms and conditions.

  1. Have fun using the extension!

  2. This, along with the MIT App Inventor original post above, are the only authorized places to download this extension. As an organization, you are not allowed to host and advertize this extension on your website, document, tweet, blog, article or any software you made without my authorization. You are also reminded not to include a direct download link of this extension on your website without my permission. If you are interested in the actions listed above, please contact me via email. Do remember that if you violate term no. 2, AICODE has the right to flag your website, document, tweet, blog or article as a violation of copyright, or other legal actions will be taken. Please contact me if you find anyone do this.

However, you can copy the link of this webpage and share it to someone as a personal identity (not as an organization), or sharing it on these authorized forums: App Inventor, Kodular, Niotron, Appzard and Android Builder communities. The term organization includes schools, markets and app stores, companies and social groups. Thank you for your understanding.

Those organizations are authorized to advertize or host my extension:

  • Kodular admins

  • MIT App Inventor admins

  • Pura Vida Apps / Taifun Baer

  1. Selling this extension/product to anyone is not allowed unless authorized by AICODE.

  2. These terms and conditions are written and issued on December 20, 2021. AICODE has the total permission to edit these terms and conditions anytime.