mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-24 02:22:44 +02:00
Added comments describing ShareExtensionManager public functionality + small method renaming
This commit is contained in:
@@ -152,14 +152,16 @@ typedef NS_ENUM(NSInteger, ImageCompressionMode)
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (void)cancelSharing
|
||||
- (void)terminateExtensionCanceled:(BOOL)canceled
|
||||
{
|
||||
[self.shareExtensionContext cancelRequestWithError:[NSError errorWithDomain:@"MXUserCancelErrorDomain" code:4201 userInfo:nil]];
|
||||
}
|
||||
|
||||
- (void)cancelSharingWithFailure
|
||||
{
|
||||
[self.shareExtensionContext cancelRequestWithError:[NSError errorWithDomain:@"MXFailureErrorDomain" code:500 userInfo:nil]];
|
||||
if (canceled)
|
||||
{
|
||||
[self.shareExtensionContext cancelRequestWithError:[NSError errorWithDomain:@"MXUserCancelErrorDomain" code:4201 userInfo:nil]];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self.shareExtensionContext cancelRequestWithError:[NSError errorWithDomain:@"MXFailureErrorDomain" code:500 userInfo:nil]];
|
||||
}
|
||||
}
|
||||
|
||||
- (UIAlertController *)compressionPromptForImage:(UIImage *)image shareBlock:(nonnull void(^)())shareBlock
|
||||
|
||||
Reference in New Issue
Block a user