Structure

UIActivity.ActivityType

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

Declaration

struct ActivityType

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: UIActivity.ActivityType

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

static let airDrop: UIActivity.ActivityType

The object makes the provided content available via AirDrop.

static let assignToContact: UIActivity.ActivityType

The object assigns the image to a contact.

static let copyToPasteboard: UIActivity.ActivityType

The object posts the provided content to the pasteboard.

static let mail: UIActivity.ActivityType

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

static let message: UIActivity.ActivityType

The object posts the provided content to the Messages app.

static let openInIBooks: UIActivity.ActivityType

The object opens the content in iBooks.

static let postToFacebook: UIActivity.ActivityType

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

static let postToFlickr: UIActivity.ActivityType

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

static let postToTencentWeibo: UIActivity.ActivityType

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

static let postToTwitter: UIActivity.ActivityType

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

static let postToVimeo: UIActivity.ActivityType

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

static let postToWeibo: UIActivity.ActivityType

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

static let print: UIActivity.ActivityType

The object prints the provided content.

static let saveToCameraRoll: UIActivity.ActivityType

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

Relationships

See Also

Getting the Activity Information

class var activityCategory: UIActivity.Category

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

enum UIActivity.Category

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

var activityType: UIActivity.ActivityType?

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.