You've already forked joplin
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:
committed by
GitHub
parent
e95ea48ce9
commit
da8cc73df6
@@ -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
|
||||
Reference in New Issue
Block a user