NewsBlur/clients/ios/Classes/NBActivityItemSource.h
Nicholas Riley 02675df053 Clean up activity handling, and fix sending to Reading List.
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.
2016-06-04 09:41:58 -04:00

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