mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00

Don’t try to subclass UIActivityItemProvider as well as implement UIActivityItemSource - the latter is better suited for what NewsBlur wants to do (provide different items based on activity type). Provide the URL as a separate item where possible; only return strings from UIActivityItemSource.
24 lines
587 B
Objective-C
24 lines
587 B
Objective-C
//
|
|
// NBActivityItemSource.h
|
|
// NewsBlur
|
|
//
|
|
// Created by Samuel Clay on 12/15/14.
|
|
// Copyright (c) 2014 NewsBlur. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
@interface NBActivityItemSource : NSObject <UIActivityItemSource> {
|
|
NSURL *url;
|
|
NSString *authorName;
|
|
NSString *text;
|
|
NSString *title;
|
|
NSString *feedTitle;
|
|
}
|
|
|
|
- (instancetype)initWithUrl:(NSURL *)url
|
|
authorName:(NSString *)authorName
|
|
text:(NSString *)text
|
|
title:(NSString *)title
|
|
feedTitle:(NSString *)feedTitle;
|
|
@end
|