mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-04-24 03:00:11 -04:00
Merged sendTweet and composeTweet. Changed how optional parameters (image and url attachments) are sent. Added additional examples for creating tweets.
33 lines
852 B
Objective-C
33 lines
852 B
Objective-C
//
|
|
// TwitterPlugin.h
|
|
// TwitterPlugin
|
|
//
|
|
// Created by Antonelli Brian on 10/13/11.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <Twitter/Twitter.h>
|
|
#import <Accounts/Accounts.h>
|
|
#ifdef PHONEGAP_FRAMEWORK
|
|
#import <PhoneGap/PGPlugin.h>
|
|
#else
|
|
#import "PGPlugin.h"
|
|
#endif
|
|
|
|
@interface TwitterPlugin : PGPlugin{
|
|
}
|
|
|
|
- (void) isTwitterAvailable:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
|
|
|
|
- (void) isTwitterSetup:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
|
|
|
|
- (void) composeTweet:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
|
|
|
|
- (void) getPublicTimeline:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
|
|
|
|
- (void) getMentions:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
|
|
|
|
- (void) performCallbackOnMainThreadforJS:(NSString*)js;
|
|
|
|
@end
|