Type Property


The object posts the provided content to a new email message.


static let mail: UIActivity.ActivityType


When using this service, you can provide NSString and UIImage objects and NSURL objects pointing to local files as data for the activity items.

To specify an NSData object, you must implement the UIActivityItemSource protocol, return the data object in activityViewController(_:itemForActivityType:), and return the data object’s UTI in activityViewController(_:dataTypeIdentifierForActivityType:). Also, you may need to register the appropriate mapping so that the MIME type can be determined.