forked from timonus/TJActivityViewController
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TJActivityViewController.h
40 lines (31 loc) · 1.34 KB
/
TJActivityViewController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// TJActivityViewController.h
//
// Created by Tim Johnsen on 1/1/15.
// Copyright (c) 2015 Tim Johnsen. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface TJActivityViewController : UIActivityViewController
/**
Overrides a particular activity type with a block.
@param activityType The activity type to override.
@param block The block to execute in place of the given activity.
*/
- (void)overrideActivityType:(NSString *)activityType withBlock:(void (^)(void))block;
/**
Overrides activity types matching a regex with a block.
@param regexString A regex that the tapped @c activityType is matched with.
@param block The block to execute in place of the given activity.
*/
- (void)overrideActivityTypeMatchingRegex:(NSString *)regexString withBlock:(void (^)(void))block;
/**
Overrides the item used for a particular activity.
@param activityType The activity type to override.
@param block A block that returns the overriden item to use for the activity.
*/
- (void)overrideItemForActivityType:(NSString *)activityType withBlock:(id (^)(void))block;
/// TJActivityViewController only supports @c completionWithItemsHandler, so this is explicitly marked as unavailable.
@property (nullable, nonatomic, copy) UIActivityViewControllerCompletionHandler completionHandler NS_UNAVAILABLE;
@end
NS_ASSUME_NONNULL_END