1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

iOS: Add share extension (#4492)

This commit is contained in:
Duncan Cunningham
2021-04-24 10:22:11 +02:00
committed by GitHub
parent e95ea48ce9
commit da8cc73df6
23 changed files with 870 additions and 17 deletions

View File

@@ -0,0 +1,24 @@
//
// ShareData.h
// ShareExtension
//
// Created by Duncan Cunningham on 2/6/21.
// Copyright © 2021 joplinapp.org. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface ShareData : NSObject
@property (nonatomic, strong) NSString* title;
@property (nonatomic, strong) NSString* text;
@property (nonatomic, strong) NSArray<NSDictionary*>* resources;
- (id)initWithDictionary:(NSDictionary*)dictionary;
- (NSDictionary*)encodeToDictionary;
+ (NSDictionary*)resourceDictionaryForURL:(NSString*)url withName:(NSString*)name andMimeType:(NSString*)mimeType;
+ (NSString*)resourceURLFromDictionary:(NSDictionary*)dictionary;
@end