Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace CommunityToolkit.Maui.Core;

/// <summary>Default Values for <see cref="ICameraView"/>"/></summary>
/// <summary>Default Values for <see cref="ICameraView"/></summary>
[SupportedOSPlatform("windows10.0.10240.0")]
[SupportedOSPlatform("android21.0")]
[SupportedOSPlatform("ios")]
Expand Down Expand Up @@ -47,18 +47,18 @@
internal static Command<CancellationToken> CreateCaptureImageCommand(BindableObject bindable)
{
var cameraView = (CameraView)bindable;
return new(async token => await cameraView.CaptureImage(token).ConfigureAwait(false));

Check warning on line 50 in src/CommunityToolkit.Maui.Camera/Primitives/CameraViewDefaults.shared.cs

View workflow job for this annotation

GitHub Actions / Run Benchmarks (macos-15)

This call site is reachable on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'tizen', 'windows' 10.0.10240.0 and later. 'CameraView.CaptureImage(CancellationToken)' is only supported on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'windows' 10.0.10240.0 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)

Check warning on line 50 in src/CommunityToolkit.Maui.Camera/Primitives/CameraViewDefaults.shared.cs

View workflow job for this annotation

GitHub Actions / Run Benchmarks (windows-latest)

This call site is reachable on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'tizen', 'windows' 10.0.10240.0 and later. 'CameraView.CaptureImage(CancellationToken)' is only supported on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'windows' 10.0.10240.0 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)

Check warning on line 50 in src/CommunityToolkit.Maui.Camera/Primitives/CameraViewDefaults.shared.cs

View workflow job for this annotation

GitHub Actions / Build Library (macos-15)

This call site is reachable on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'tizen', 'windows' 10.0.10240.0 and later. 'CameraView.CaptureImage(CancellationToken)' is only supported on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'windows' 10.0.10240.0 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)

Check warning on line 50 in src/CommunityToolkit.Maui.Camera/Primitives/CameraViewDefaults.shared.cs

View workflow job for this annotation

GitHub Actions / Build Library (macos-15)

This call site is reachable on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'tizen', 'windows' 10.0.10240.0 and later. 'CameraView.CaptureImage(CancellationToken)' is only supported on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'windows' 10.0.10240.0 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)

Check warning on line 50 in src/CommunityToolkit.Maui.Camera/Primitives/CameraViewDefaults.shared.cs

View workflow job for this annotation

GitHub Actions / Build Library (macos-15)

This call site is reachable on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'tizen', 'windows' 10.0.10240.0 and later. 'CameraView.CaptureImage(CancellationToken)' is only supported on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'windows' 10.0.10240.0 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
}

internal static Command<CancellationToken> CreateStartCameraPreviewCommand(BindableObject bindable)
{
var cameraView = (CameraView)bindable;
return new(async token => await cameraView.StartCameraPreview(token).ConfigureAwait(false));

Check warning on line 56 in src/CommunityToolkit.Maui.Camera/Primitives/CameraViewDefaults.shared.cs

View workflow job for this annotation

GitHub Actions / Run Benchmarks (macos-15)

This call site is reachable on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'tizen', 'windows' 10.0.10240.0 and later. 'CameraView.StartCameraPreview(CancellationToken)' is only supported on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'windows' 10.0.10240.0 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)

Check warning on line 56 in src/CommunityToolkit.Maui.Camera/Primitives/CameraViewDefaults.shared.cs

View workflow job for this annotation

GitHub Actions / Run Benchmarks (windows-latest)

This call site is reachable on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'tizen', 'windows' 10.0.10240.0 and later. 'CameraView.StartCameraPreview(CancellationToken)' is only supported on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'windows' 10.0.10240.0 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)

Check warning on line 56 in src/CommunityToolkit.Maui.Camera/Primitives/CameraViewDefaults.shared.cs

View workflow job for this annotation

GitHub Actions / Build Library (macos-15)

This call site is reachable on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'tizen', 'windows' 10.0.10240.0 and later. 'CameraView.StartCameraPreview(CancellationToken)' is only supported on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'windows' 10.0.10240.0 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)

Check warning on line 56 in src/CommunityToolkit.Maui.Camera/Primitives/CameraViewDefaults.shared.cs

View workflow job for this annotation

GitHub Actions / Build Library (macos-15)

This call site is reachable on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'tizen', 'windows' 10.0.10240.0 and later. 'CameraView.StartCameraPreview(CancellationToken)' is only supported on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'windows' 10.0.10240.0 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
}

internal static ICommand CreateStopCameraPreviewCommand(BindableObject bindable)
{
var cameraView = (CameraView)bindable;
return new Command(_ => cameraView.StopCameraPreview());

Check warning on line 62 in src/CommunityToolkit.Maui.Camera/Primitives/CameraViewDefaults.shared.cs

View workflow job for this annotation

GitHub Actions / Run Benchmarks (macos-15)

This call site is reachable on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'tizen', 'windows' 10.0.10240.0 and later. 'CameraView.StopCameraPreview()' is only supported on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'windows' 10.0.10240.0 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)

Check warning on line 62 in src/CommunityToolkit.Maui.Camera/Primitives/CameraViewDefaults.shared.cs

View workflow job for this annotation

GitHub Actions / Run Benchmarks (windows-latest)

This call site is reachable on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'tizen', 'windows' 10.0.10240.0 and later. 'CameraView.StopCameraPreview()' is only supported on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'windows' 10.0.10240.0 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)

Check warning on line 62 in src/CommunityToolkit.Maui.Camera/Primitives/CameraViewDefaults.shared.cs

View workflow job for this annotation

GitHub Actions / Build Library (macos-15)

This call site is reachable on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'tizen', 'windows' 10.0.10240.0 and later. 'CameraView.StopCameraPreview()' is only supported on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'windows' 10.0.10240.0 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)

Check warning on line 62 in src/CommunityToolkit.Maui.Camera/Primitives/CameraViewDefaults.shared.cs

View workflow job for this annotation

GitHub Actions / Build Library (macos-15)

This call site is reachable on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'tizen', 'windows' 10.0.10240.0 and later. 'CameraView.StopCameraPreview()' is only supported on: 'android' 21.0 and later, 'ios', 'maccatalyst', 'windows' 10.0.10240.0 and later. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
}
}
}
Loading