Instance Property


An identifier for the type of service being provided.


var activityType: UIActivity.ActivityType? { get }

Return Value

A string that identifies the provided service to your app.


This method returns nil by default. Subclasses must override this method and return a valid string that identifies the application service. This string is not presented to the user.

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.

struct UIActivity.ActivityType

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

var activityTitle: String?

A user-readable string describing the service.

var activityImage: UIImage?

An image that identifies the service to the user.