Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (36 sloc) 1.41 KB
// ****************************************************************************
// <copyright file="ICameraCaptureService.cs" company="Pedro Lamas">
// Copyright © Pedro Lamas 2011
// </copyright>
// ****************************************************************************
// <author>Pedro Lamas</author>
// <email>pedrolamas@gmail.com</email>
// <date>21-11-2011</date>
// <project>Cimbalino.Phone.Toolkit.Camera</project>
// <web>http://www.pedrolamas.com</web>
// <license>
// See license.txt in this solution or http://www.pedrolamas.com/license_MIT.txt
// </license>
// ****************************************************************************
using System;
using System.Threading.Tasks;
using Microsoft.Phone.Tasks;
namespace Cimbalino.Phone.Toolkit.Services
{
/// <summary>
/// Represents a service capable of launching the Camera application.
/// </summary>
public interface ICameraCaptureService
{
/// <summary>
/// Shows the camera application.
/// </summary>
/// <param name="resultAction">The <see cref="Action{PhotoResult}"/> to be called once the operation is finished.</param>
void Show(Action<PhotoResult> resultAction);
/// <summary>
/// Shows the camera application.
/// </summary>
/// <returns>The <see cref="Task"/> object representing the asynchronous operation.</returns>
Task<PhotoResult> ShowAsync();
}
}
Something went wrong with that request. Please try again.