Structure

UIActivityType

Activity types for which the system has built-in support.

Overview

These constants represent the values that can be stored in the activityType property of system-defined activity objects.

Topics

Type Properties

static let addToReadingList: UIActivityType

The object adds the URL to Safari’s reading list.

static let airDrop: UIActivityType

The object makes the provided content available via AirDrop.

static let assignToContact: UIActivityType

The object assigns the image to a contact.

static let copyToPasteboard: UIActivityType

The object posts the provided content to the pasteboard.

static let mail: UIActivityType

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

static let message: UIActivityType

The object posts the provided content to the Messages app.

static let openInIBooks: UIActivityType

The object opens the content in iBooks.

static let postToFacebook: UIActivityType

The object posts the provided content to the user’s wall on Facebook.

static let postToFlickr: UIActivityType

The object posts the provided image to the user’s Flickr account.

static let postToTencentWeibo: UIActivityType

The object posts the provided content to the user’s Tencent Weibo feed.

static let postToTwitter: UIActivityType

The object posts the provided content to the user’s Twitter feed.

static let postToVimeo: UIActivityType

The object posts the provided video to the user’s Vimeo account.

static let postToWeibo: UIActivityType

The object posts the provided content to the user’s Weibo feed.

static let print: UIActivityType

The object prints the provided content.

static let saveToCameraRoll: UIActivityType

The object assigns the image or video to the user’s camera roll.

Relationships

See Also

Getting the Activity Information

class var activityCategory: UIActivityCategory

Returns the category of the activity, which may be used to group activities in the UI.

enum UIActivityCategory

Activities have a defined category, and the activity UI may show activities grouped by category.

var activityType: UIActivityType?

An identifier for the type of service being provided.

var activityTitle: String?

A user-readable string describing the service.

var activityImage: UIImage?

An image that identifies the service to the user.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software