Maximizing Code-Sharing with Xamarin.Mobile, James Clancey
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Maximizing Code-Sharing with Xamarin.Mobile, James Clancey

on

  • 1,435 views

 

Statistics

Views

Total Views
1,435
Views on SlideShare
1,435
Embed Views
0

Actions

Likes
0
Downloads
37
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Maximizing Code-Sharing with Xamarin.Mobile, James Clancey Presentation Transcript

  • 1. James ClanceySenior Mobile DeveloperXamarinclancey@xamarin.comXamarin.Mobile@jtclancey
  • 2. Xamarin.Mobile.Geolocation• Geolocator• PositionLatitudeLongitudeAccuracyAltitudeAltitude AccuracySpeedHeading
  • 3. Xamarin.Mobile.Contacts• AddressBookRequestPermision• ContactPhoneEmailAddressWebsiteRelationship
  • 4. Xamarin.Mobile.Media• PhotosPick existingTake new photo• VideoPick existingTake new video
  • 5. Code sharing• Xamarin.Mobile lets you maximize Code Sharing• How can you apply this to your own apps?
  • 6. DEMO
  • 7. Xamarin.Mobile Api• We take care of all the UI for you• Perfect for most use cases• Sometimes you need more control
  • 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. 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. Q&A
  • 11. THANK YOU