5 // Created by Jesse MacFadyen on 10-02-03.
8 // Originally this code was developed my Michael Nachbaur
9 // Formerly -> PhoneGap :: UIControls.h
10 // Created by Michael Nachbaur on 13/04/09.
11 // Copyright 2009 Decaf Ninja Software. All rights reserved.
13 #import <Foundation/Foundation.h>
14 #import <UIKit/UIKit.h>
15 #import <UIKit/UITabBar.h>
16 #import <UIKit/UIToolbar.h>
17 #ifdef PHONEGAP_FRAMEWORK
18 #import <PhoneGap/PGPlugin.h>
23 @interface NativeControls : PGPlugin <UITabBarDelegate, UIActionSheetDelegate> {
25 NSMutableDictionary* tabBarItems;
28 UIBarButtonItem* toolBarTitle;
29 NSMutableArray* toolBarItems;
31 CGRect originalWebViewBounds;
36 - (void)createTabBar:(NSArray*)arguments withDict:(NSDictionary*)options;
37 - (void)showTabBar:(NSArray*)arguments withDict:(NSDictionary*)options;
38 - (void)hideTabBar:(NSArray*)arguments withDict:(NSDictionary*)options;
39 - (void)showTabBarItems:(NSArray*)arguments withDict:(NSDictionary*)options;
40 - (void)createTabBarItem:(NSArray*)arguments withDict:(NSDictionary*)options;
41 - (void)updateTabBarItem:(NSArray*)arguments withDict:(NSDictionary*)options;
42 - (void)selectTabBarItem:(NSArray*)arguments withDict:(NSDictionary*)options;
48 - (void)createToolBar:(NSArray*)arguments withDict:(NSDictionary*)options;
49 - (void)resetToolBar:(NSArray*)arguments withDict:(NSDictionary*)options;
50 - (void)setToolBarTitle:(NSArray*)arguments withDict:(NSDictionary*)options;
51 - (void)createToolBarItem:(NSArray*)arguments withDict:(NSDictionary*)options;
52 - (void)showToolBar:(NSArray*)arguments withDict:(NSDictionary*)options;
53 - (void)hideToolBar:(NSArray*)arguments withDict:(NSDictionary*)options;
56 - (void)createActionSheet:(NSArray*)arguments withDict:(NSDictionary*)options;