mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-04-24 03:00:11 -04:00
36 lines
817 B
Objective-C
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
|
|
|