Camera

The camera module helps to make camera app development easier, It provides consistency and an easy-to-use API for capturing images, videos and storing them.

Primary Use Cases

It improves the developer experience in several key ways.

  • Handle the entire process of capturing and storing so that the developer focus more on the coding part

  • Giving more control over the camera by changing some parameters, even control over orientation

  • Support multiple captures of photos and video in a single time

Ease of use

It allows you to focus on the task you need to get done instead of managing device-specific nuances. Most common camera use cases are supported:

  • Image Capture: Save the Image

  • Video Capture: Save video and audio

Adding Module

MAUI specific :

1. Configure NuGet Package Source

Add the TruVideo GitHub package source to your NuGet configuration. You can do this in two ways:

Option A: Using the .NET CLI

Option B: Manually editing nuget.config

Create or edit the nuget.config file in your solution directory:

2. Configure GitHub Authentication

You need to configure your GitHub credentials to access the package feed. Add the following to your nuget.config file:

Replace:

  • YOUR_GITHUB_USERNAME with your GitHub username

  • YOUR_GITHUB_PAT with a GitHub Personal Access Token that has read:packages scope

Important: You must create a GitHub Personal Access Token with both repo and packages permissions. Without these specific permissions, package installation will fail. To create a token:

  1. Go to GitHub Settings > Developer Settings > Personal Access Tokens

  2. Generate a new token with at least repo and packages scopes

  3. Copy the token immediately as it won't be shown again

Note: Never commit your GitHub credentials to source control. Consider using environment variables or user-specific configuration files.

3. Install Required Packages

If you configured the package source manually, you need to install the required packages using the following commands:

Check latest version - Android , iOS

4. Important Project Configuration

When implementing the SDK in your own application, make sure to add the following configuration to your .csproj file:

Last updated

Was this helpful?