-
Notifications
You must be signed in to change notification settings - Fork 1
share
Francisco Dias edited this page Apr 7, 2026
·
2 revisions
This module provides interaction with images on the device.
These are the functions in this module:
This function brings up a share popup.
Note
On iOS devices, permissions will be requested automatically. Android developers already have the required permissions added to the manifest by the extension: android.permission.READ_EXTERNAL_STORAGE, android.permission.WRITE_EXTERNAL_STORAGE, android.permission.CAMERA.
Syntax:
MobileUtils_Share_Open(title, mime, path)
| Argument | Type | Description |
|---|---|---|
| title | String | Title of the share (not available for all the providers) |
| mime | String | One of the following strings: "text/plain", "text/rtf", "text/html", "text/json", "image/jpg", "image/gif", "application/pdf", "*/*"
|
| path | String | The path to the file |
Returns:
N/A
Example:
var _file = "mSharedImage.gif";
file_copy("YYImage.jpg", _file);
var _read = "android.permission.READ_EXTERNAL_STORAGE";
var _write = "android.permission.WRITE_EXTERNAL_STORAGE";
if(os_check_permission(_write) and os_check_permission(_read))
{
MobileUtils_Share_Open("Title!", "image/jpg", _file);
}
else
{
os_request_permission(_write, _read);
}
The above code shows a code example.
GameMaker 2026