Click here to Skip to main content
15,664,823 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello how can I do a camera timer with android xamarin?
I don't know how to put a instant timer camera.

What I have tried:

var file = await CrossMedia.Current.TakePhotoAsync(new Plugin.Media.Abstractions.StoreCameraMediaOptions
DefaultCamera = Plugin.Media.Abstractions.CameraDevice.Front,
PhotoSize = Plugin.Media.Abstractions.PhotoSize.Small

if (file == null) return;

byte[] imageAsBytes = null;
using (var memoryStream = new MemoryStream())
imageAsBytes = memoryStream.ToArray();
Updated 2-Jul-18 5:55am

1 solution

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900