32 lines
817 B
Objective-C
32 lines
817 B
Objective-C
//
|
|
// ShareProvider.h
|
|
// YuMi
|
|
//
|
|
// Created by P on 2025/3/6.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
#import <LinkPresentation/LinkPresentation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface ShareProvider : UIActivityItemProvider
|
|
|
|
@property (nonatomic, strong) NSString *title;
|
|
@property (nonatomic, strong) NSString *subtitle;
|
|
@property (nonatomic, strong) NSString *appName;
|
|
@property (nonatomic, strong) NSURL *url;
|
|
@property (nonatomic, strong) UIImage *image;
|
|
@property (nonatomic, strong) UIImage *appIcon;
|
|
|
|
- (instancetype)initWithTitle:(NSString *)title
|
|
subtitle:(NSString *)subtitle
|
|
appName:(NSString *)appName
|
|
url:(NSURL *)url
|
|
image:(UIImage *)image
|
|
appIcon:(UIImage *)appIcon;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|