Commit Graph

1223 Commits

Author SHA1 Message Date
Simon Cruise
a799d552c8 Screen Orientation Plugin to rotate screen to portrait and landscape mode
The status bar and screen will be rotated with animation to the desired
orientation.

To use the AppDelegate must have the main view controller that extends
CDVViewController as a member variable called viewController.

This main view controller must also have the following modifications.

Header file should have the below allowed orientations variable
introduced.

@interface MainViewController : CDVViewController {
    NSMutableArray *allowedOrientations;
}

@property (nonatomic, retain) NSMutableArray *allowedOrientations;

Source file should have the allowedOrientations synthesized.

@synthesize allowedOrientations;

Then perform setup in viewDidLoad method. UIDeviceOrientationPortrait
can be replaced with UIDeviceOrientationLandscapeRight depending on
desired start up orientation.

- (void) viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.allowedOrientations =  [NSMutableArray array];
    [self.allowedOrientations addObject:[NSNumber
numberWithInt:UIDeviceOrientationPortrait]];
}

Finally implement shouldAutorotateToInterfaceOrientation method with
the following.

- (BOOL)
shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interface
Orientation
{
    // Return YES for supported orientations
    return [allowedOrientations containsObject:[NSNumber
numberWithInt:interfaceOrientation]];
}
2012-08-31 10:55:31 +01:00
macdonst
cf206c9b0f Merge pull request #767 from shepheb/master
Second round of Android status bar notifications improvements: onclick() support
2012-08-30 13:23:45 -07:00
Braden Shepherdson
287abff321 Merge branch 'master' of github.com:phonegap/phonegap-plugins 2012-08-30 16:12:07 -04:00
Braden Shepherdson
1362a06aba onclick for Android status bar notifications
Cleans up the Android status bar notifications code and handles clicks
on the notification, calling the onclick() callback defined on the
notification in Javascript.
2012-08-30 16:10:41 -04:00
macdonst
586237ab1c Merge pull request #762 from tomaz-dev/master
Updated PayPal Plugin for Android to work with Cordova 2.0.0
2012-08-29 17:32:03 -07:00
Tomaz
a0ea5e0e9d Merge branch 'master' of https://github.com/tomaz-dev/phonegap-plugins 2012-08-30 00:46:28 +02:00
Tomaz
4f90713094 Updated PayPal Plugin for Android to work with Cordova 2.0.0 2012-08-30 00:45:38 +02:00
Tomaz
c07feeccc1 Updated PayPal Plugin for Android to work with Cordova 2.0.0 2012-08-29 23:18:06 +02:00
Shazron Abdullah
65e0199ce2 Merge pull request #759 from jagregory/patch-1
[iOS] Change CDVPlugin.h import to use correct filename
2012-08-29 00:27:36 -07:00
Max Ogden
4b6e9ef145 fixed import line and verified that #761 works on an android 2.2 device :) 2012-08-28 13:07:34 -07:00
Max Ogden
9a23ddfe5c Merge pull request #761 from shepheb/master
Several improvements to Android status bar notifications, especially adding the W3C Notification spec
2012-08-28 12:47:25 -07:00
Braden Shepherdson
161428abb9 Improvements to Android status bar notifications
Several things here:
- Add support for the W3C notifications spec, and rewrite the old API to
  call the new W3C one behind the scenes.
- Notifications are now automatically cleared when the user clicks.
- Clicking the notification brings the user to the same instance of the
  app as was already running (and not a new copy as by default in
  Android notifications).
- Support for multiple notifications from one app using tags, as
  specified in the W3C spec and supported by Android.
- Support for canceling a single notification by tag, as per W3C spec.

Callbacks to Javascript when the user clicks are specified but not yet
supported; I will add that assuming I can get Android to call some code
in the plugin when the notification is clicked.
2012-08-28 15:19:40 -04:00
James Gregory
ee5a83debd Change CDVPlugin.h import to use correct filename
Plugin doesn't compile because it's trying to import a CDVlugin.h.
Changed to correct filename.
2012-08-28 17:57:06 +10:00
Shazron Abdullah
d1bdd99a50 Merge pull request #670 from rmituniewicz/barcodeWindows
[WP7] BarcodeScanner port to Windows Phone 7.5
2012-08-27 17:17:22 -07:00
Shazron Abdullah
858dae27e1 Merge pull request #516 from kissthink/master
[iOS] call  vendor app by  Custom URL Schemes if not exits and goto a url to download
2012-08-27 15:15:26 -07:00
Shazron Abdullah
65669671e6 Merge pull request #606 from poblcreative/master
[iOS] Zip file plugin for iOS, using SSZipArchive
2012-08-27 15:15:01 -07:00
Shazron Abdullah
c37ea6da8c Merge pull request #652 from jesses16/master
[iOS] Fixed ShareToMail plugin function to properly accept email parameters
2012-08-27 15:10:17 -07:00
Shazron Abdullah
761cdb4d9b Merge pull request #703 from josemando/master
[iOS] ShareKit - Fixing 'share' method
2012-08-27 15:06:49 -07:00
Shazron Abdullah
2f57931cb4 Merge pull request #705 from kieranshaw/master
[iOS] Fix for issue #704: GoogleAnalyticsPlugin upgrade to Cordova 2.0
2012-08-27 15:05:50 -07:00
Shazron Abdullah
7429c53308 Merge pull request #715 from ehershey/master
[iOS] Modified applicationPreferences ios plugin to work with phonegap 2.0
2012-08-27 15:04:30 -07:00
Shazron Abdullah
27f75ad8d4 Merge pull request #717 from jcbee/master
[iOS] Upgrading Prompt Plugin to Cordova 2.0 compliance
2012-08-27 15:03:50 -07:00
Shazron Abdullah
94401082c4 Merge pull request #724 from duncanmcdougall/master
[iOS] DatePicker - Added allowFutureDates option.
2012-08-27 15:03:19 -07:00
Shazron Abdullah
6a7d3d8941 Merge pull request #739 from thoolihan/master
[iOS] Add getCalendarList and add calendar title parameter to createEvent
2012-08-27 15:02:54 -07:00
Shazron Abdullah
5b657ea54f Merge pull request #727 from triceam/master
[Android] Updated LowLatencyAudio for Android to use Cordova namespace
2012-08-27 14:51:37 -07:00
Max Ogden
eb63a0124b update readme and add more docs to statusbarnotification android plugin 2012-08-27 13:39:05 -07:00
macdonst
ef014e9f8c Upating SpeechRecognizer Plugin to work with 2.0.0 2012-08-27 11:40:48 -04:00
Max Ogden
03dedd48b8 make android statusbar notification plugin work on all cordova/android versions EVAR 2012-08-26 16:49:50 -07:00
RandyMcMillan
976fbc0823 No Change
No Change
2012-08-25 07:38:56 -04:00
Max Ogden
1371059cb5 update datepicker readme to mention time zone 2012-08-24 17:01:59 -07:00
Max Ogden
0a335b56bc use toLocaleString instead of toString so that JS parses date strings into the correct time zone 2012-08-24 17:00:24 -07:00
macdonst
d665ce320a Merge pull request #750 from bperin/patch-1
Updated to work with cordova 2.0.0
2012-08-23 07:27:48 -07:00
bperin
8e1efd9993 Updated to work with cordova 2.0.0 2012-08-23 03:21:54 -07:00
tommy-carlos williams
a74af6d5ef Merge pull request #746 from josafafilho/message-box-prompt-email
Add the email text field type to prompt MessageBox
2012-08-20 22:22:14 -07:00
tommy-carlos williams
dae3f90578 Merge pull request #747 from AndiDog/master
Support tab bar tint color, documented using retina-quality tab images
2012-08-20 22:20:38 -07:00
Andreas Sommer
9d9f9a6f32 Documented usage of retina quality images 2012-08-20 20:53:29 +02:00
Josafa Filho
7448e3f433 Add the email text field type to prompt MessageBox 2012-08-20 11:34:47 -03:00
macdonst
8db99b8a36 Merge pull request #745 from mschwab/master
New OcrApiService.com plugin for Cordova
2012-08-20 05:39:59 -07:00
RandyMcMillan
dd5a7b17ef CDV 2.0 (iOS) iAdPlugin
added CDV 2.0 /www example
2012-08-20 08:33:46 -04:00
Maxime Schwab
9474d8660d OcrApiService plugin for Android 2012-08-20 13:14:57 +02:00
Shazron Abdullah
a14787254d Merge pull request #742 from zaheerm/applicationpreferences_phonegap2
ApplicationPreferences: Use new way of defining phonegap plugins.
2012-08-18 22:37:26 -07:00
Matt Kane
ef7c6ccfb7 Merge pull request #740 from TriggerTrap/headset
Add HeadsetWatcher plugin.
2012-08-18 00:32:37 -07:00
ascorbic
75ba65afe3 Add HeadsetWatcher plugin. 2012-08-18 08:30:32 +01:00
Tim Hoolihan
c29ffb7979 Added method to fetch calendar list, and optional calendar name for create event 2012-08-17 14:52:14 -04:00
Becky Gibson
2422b3cfb9 Merge pull request #719 from mow415/master
Updates to Globalization plugin for Blackberry, Android, and iOS
2012-08-17 09:43:13 -07:00
Andreas Sommer
0621d259ad Add support for tab bar tint (only on iOS 5 or newer) 2012-08-17 15:16:15 +01:00
Andrew Trice
c1cda6a855 updated readme 2012-08-15 15:43:25 -04:00
Andrew Trice
54022f9204 updated url in readme 2012-08-15 15:39:09 -04:00
Andrew Trice
83f33d4655 added ExternalFileUtil native plugin 2012-08-15 15:37:15 -04:00
macdonst
24212d449d Merge pull request #709 from Patrick64/patch-1
[WebIntent Android] Compatibility for Phonegap 2.0
2012-08-15 09:55:48 -07:00
macdonst
cc9a2f07b9 Merge pull request #736 from broderix/master
update Analytics plugin for Android to work with phonegap cordova 2.0
2012-08-15 09:26:15 -07:00