Skip to content

Commit 85e8fce

Browse files
authored
Merge pull request #389 from rt2zz/staging
Switch showShareSheet...andCallback to showShareSheet...completion
2 parents 43bc72c + c841b22 commit 85e8fce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ linkProperties.feature = @"sharing";
657657
[branchUniversalObject showShareSheetWithLinkProperties:linkProperties
658658
andShareText:@"Super amazing thing I want to share!"
659659
fromViewController:self
660-
andCallback:^{
660+
completion:^(NSString *activityType, BOOL completed){
661661
NSLog(@"finished presenting");
662662
}];
663663
```
@@ -675,7 +675,7 @@ linkProperties.addControlParam("$ios_url", withValue: "http://example.com/ios")
675675
branchUniversalObject.showShareSheetWithLinkProperties(linkProperties,
676676
andShareText: "Super amazing thing I want to share!",
677677
fromViewController: self,
678-
andCallback: { () -> Void in
678+
completion: { () -> Void in
679679
NSLog("done showing share sheet!")
680680
})
681681
```
@@ -688,7 +688,7 @@ branchUniversalObject.showShareSheetWithLinkProperties(linkProperties,
688688

689689
**fromViewController**:
690690

691-
**andCallback**:
691+
**completion**:
692692

693693
#### Returns
694694

0 commit comments

Comments
 (0)