Type Property

mail

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

Declaration

static let mail: UIActivity.ActivityType

Discussion

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.