excludedActivityTypes

Objective-C

@property (nonatomic, copy) NSArray<UIActivityType> *_Nonnull excludedActivityTypes;

Swift

var excludedActivityTypes: [UIActivity.ActivityType] { get set }

Used for the activity action when the UIActivityViewController is displayed.

Defaults to UIActivityTypeCopyToPasteboard, UIActivityTypeAssignToContact, UIActivityTypePostToFacebook, UIActivityTypePostToTwitter, UIActivityTypePostToWeibo.

The “Add to Photos” activity on Mac Catalyst will always be excluded because a system issue means selecting that option disables almost all the app’s buttons and menu items. (FB9727325)

  • Undocumented

    Declaration

    Objective-C

    - (NSArray<UIActivityType> *_Nonnull)excludedActivityTypes;
  • Undocumented

    Declaration

    Objective-C

    - (void)setExcludedActivityTypes:
        (NSArray<UIActivityType> *_Nonnull)excludedActivityTypes;