2017-08-17 15:28:08 +00:00
|
|
|
/*
|
|
|
|
Copyright 2017 Aram Sargsyan
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
2017-08-10 22:38:47 +00:00
|
|
|
|
|
|
|
#import <MatrixKit/MatrixKit.h>
|
|
|
|
|
2021-10-28 07:16:22 +00:00
|
|
|
@protocol ShareItemSenderProtocol;
|
2021-10-15 10:09:11 +00:00
|
|
|
|
2021-10-14 11:35:36 +00:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
2021-10-18 13:30:32 +00:00
|
|
|
typedef NS_ENUM(NSUInteger, ShareManagerType) {
|
|
|
|
ShareManagerTypeSend,
|
|
|
|
ShareManagerTypeForward,
|
|
|
|
};
|
|
|
|
|
2021-10-14 09:57:32 +00:00
|
|
|
typedef NS_ENUM(NSUInteger, ShareManagerResult) {
|
|
|
|
ShareManagerResultFinished,
|
|
|
|
ShareManagerResultCancelled,
|
|
|
|
ShareManagerResultFailed
|
2021-10-14 09:05:28 +00:00
|
|
|
};
|
2017-08-17 22:27:56 +00:00
|
|
|
|
2021-10-14 09:57:32 +00:00
|
|
|
@interface ShareManager : NSObject
|
2017-08-10 22:38:47 +00:00
|
|
|
|
2021-10-14 09:57:32 +00:00
|
|
|
@property (nonatomic, copy) void (^completionCallback)(ShareManagerResult);
|
2017-08-10 22:38:47 +00:00
|
|
|
|
2021-10-28 07:16:22 +00:00
|
|
|
- (instancetype)initWithShareItemSender:(id<ShareItemSenderProtocol>)itemSender
|
|
|
|
type:(ShareManagerType)type;
|
2017-08-16 20:01:54 +00:00
|
|
|
|
2021-10-14 09:05:28 +00:00
|
|
|
- (UIViewController *)mainViewController;
|
2017-08-16 20:01:54 +00:00
|
|
|
|
2017-08-10 22:38:47 +00:00
|
|
|
@end
|
2017-08-22 15:52:32 +00:00
|
|
|
|
|
|
|
|
2021-10-14 11:35:36 +00:00
|
|
|
NS_ASSUME_NONNULL_END
|