Introduction
A non-visible extension that provides some additional tools along with the App Inventor built-in Sharing component.
Package name: com.gordonlu.sharingx.aix
Date: 2022-02-08T11:16:00Z
Documentation
Events
AppNotFound
This event returns the social media package name if an app is not installed.
Parameters: packageName = text
Methods
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
Downloads
TXT: Not available yet.
AIX: com.gordonlu.sharingx.aix (10.0 KB)
Tests
I am currently still conducting the tests. Thank you!
Rate my extension!
- Good extension!
- Bad extension.
Made with Niotron IDE.
Kindly PM me if you have any questions! Also, if you like my extension, please like it! It takes some effort for me to make it...
Votes and likes tell me the general user feedback of my extension. If you read this extension, please take 20 seconds to drop by and give a vote / like!
If you have any features that you want to add and you know the code, PM me or directly post here.
Gordon Lu