Sharing Actions
Table of contents
To use actions in this category, use this include statement:
#include 'actions/sharing'
Share
Prompt the user to share input
.
share(variable input)
AirDrop
AirDrop
Prompt the user to AirDrop input
.
airdrop(variable input)
Set AirDrop Receiving
Set the AirDrop receiving setting.
enum airdropReceivingStates {
'No One',
'Contacts Only',
'Everyone',
}
setAirdropReceiving(airdropReceivingStates ?state = "Everyone")
Clipboard
Get Clipboard
Get the contents of the clipboard.
getClipboard()
Set Clipboard
Set the contents of the clipboard.
setClipboard(variable value, bool ?local = false, text ?expire)
Email & SMS Messaging
Send Email
Send an email to a contact.
sendEmail(variable contact, text from, text subject, text body, bool ?prompt = true, bool ?draft = false)
Send Message
Send an SMS/iMessage to a contact.
sendMessage(variable contact, text message, bool ?prompt = true)