James ClanceySenior Mobile DeveloperXamarinclancey@xamarin.comXamarin.Mobile@jtclancey
Xamarin.Mobile.Geolocation• Geolocator• PositionLatitudeLongitudeAccuracyAltitudeAltitude AccuracySpeedHeading
Xamarin.Mobile.Contacts• AddressBookRequestPermision• ContactPhoneEmailAddressWebsiteRelationship
Xamarin.Mobile.Media• PhotosPick existingTake new photo• VideoPick existingTake new video
Code sharing• Xamarin.Mobile lets you maximize Code Sharing• How can you apply this to your own apps?
DEMO
Xamarin.Mobile Api• We take care of all the UI for you• Perfect for most use cases• Sometimes you need more control
01020304050607080910111213141516New API iOSvar picker = new MediaPicker();MediaPickerController controller = picker.GetTak...
01020304050607080910111213141516New API Androidvar picker = new MediaPicker (this);if (!picker.IsCameraAvailable)! Console...
Q&A
THANK YOU
Maximizing Code-Sharing with Xamarin.Mobile, James Clancey
Upcoming SlideShare
Loading in...5
×

Maximizing Code-Sharing with Xamarin.Mobile, James Clancey

869

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
869
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
42
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Maximizing Code-Sharing with Xamarin.Mobile, James Clancey

  1. 1. James ClanceySenior Mobile DeveloperXamarinclancey@xamarin.comXamarin.Mobile@jtclancey
  2. 2. Xamarin.Mobile.Geolocation• Geolocator• PositionLatitudeLongitudeAccuracyAltitudeAltitude AccuracySpeedHeading
  3. 3. Xamarin.Mobile.Contacts• AddressBookRequestPermision• ContactPhoneEmailAddressWebsiteRelationship
  4. 4. Xamarin.Mobile.Media• PhotosPick existingTake new photo• VideoPick existingTake new video
  5. 5. Code sharing• Xamarin.Mobile lets you maximize Code Sharing• How can you apply this to your own apps?
  6. 6. DEMO
  7. 7. Xamarin.Mobile Api• We take care of all the UI for you• Perfect for most use cases• Sometimes you need more control
  8. 8. 01020304050607080910111213141516New API iOSvar picker = new MediaPicker();MediaPickerController controller = picker.GetTakePhotoUI (newStoreCameraMediaOptions {! Name = "test.jpg",! Directory = "MediaPickerSample"} );PresentViewController (controller, true, null);controller.GetResultAsync().ContinueWith (t => {! // Dismiss the UI yourself! controller.DismissViewController (true, () => {! ! MediaFile file = t.Result;! } );!}, TaskScheduler.FromCurrentSynchronizationContext());
  9. 9. 01020304050607080910111213141516New API Androidvar picker = new MediaPicker (this);if (!picker.IsCameraAvailable)! Console.WriteLine ("No camera!");else {! var intent = picker.GetTakePhotoUI (new StoreCameraMediaOptions {! ! Name = "test.jpg",! ! Directory = "MediaPickerSample"! } );! StartActivityForResult (intent, 1);}
  10. 10. Q&A
  11. 11. THANK YOU
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×