Skip to content
This repository has been archived by the owner on Jul 21, 2022. It is now read-only.

Return result after the share action is completed. #71

Open
ashot3 opened this issue Jun 3, 2020 · 0 comments
Open

Return result after the share action is completed. #71

ashot3 opened this issue Jun 3, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@ashot3
Copy link

ashot3 commented Jun 3, 2020

Is it possible add completion for share action? In iOS must be set completionWithItemsHandler for a ActivityViewController

    activityViewController.completionWithItemsHandler = ^(NSString *activityType,
                                                          BOOL completed,
                                                          NSArray *returnedItems,
                                                          NSError *error) {
        
        if (error) {
            result(@-2);
        } else if (completed) {
            // user shared an item
            result(@0);
        } else {
            // user cancelled
            result(@-1);
        }
    };
@ashot3 ashot3 added the enhancement New feature or request label Jun 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant