Files
phonegap-plugins/iPhone/Prompt/Prompt.h

36 lines
817 B
Objective-C

// Phonegap Prompt Plugin
// Copyright (c) Paul Panserrieu, Zenexity 2011
// MIT Licensed
#import <Foundation/Foundation.h>
#ifdef PHONEGAP_FRAMEWORK
#import <PhoneGap/PGPlugin.h>
#else
#import "PGPlugin.h"
#endif
@interface PromptAlertView : UIAlertView {
UITextField *textField;
NSString* callback;
}
@property (nonatomic, retain) UITextField *textField;
@property (readonly) NSString *enteredText;
@property (nonatomic, copy) NSString* callback;
- (id)initWithTitle : (NSString *) title
delegate : (id) delegate
cancelButtonTitle : (NSString *) cancelButtonTitle
okButtonTitle : (NSString *) okButtonTitle;
- (NSString *)getCallback;
@end
@interface Prompt : PGPlugin {
}
- (void) show:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options;
@end