Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion docs/sdks/android/matrixscan-pick/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ The `BarcodePickView` displays a **Finish** button next to its shutter button.

Register a [BarcodePickViewUiListener](https://docs.scandit.com/data-capture-sdk/android/barcode-capture/api/ui/barcode-pick-view.html#interface-scandit.datacapture.barcode.pick.ui.IBarcodePickViewUiListener) to be notified what items have been found once the finish button is pressed.

In this tutorial, we will then navigate back to the previous screen to finish the find session.
In this tutorial, we will then navigate back to the previous screen to finish the pick session.

```kotlin
barcodePickView.uiListener = object : BarcodePickViewUiListener {
Expand Down
2 changes: 1 addition & 1 deletion docs/sdks/capacitor/matrixscan-pick/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ The `BarcodePickView` displays a **Finish** button next to its shutter button.

Register a [BarcodePickViewUiListener](https://docs.scandit.com/data-capture-sdk/capacitor/barcode-capture/api/ui/barcode-pick-view.html#interface-scandit.datacapture.barcode.pick.ui.IBarcodePickViewUiListener) to be notified what items have been found once the finish button is pressed.

In this tutorial, we will then navigate back to the previous screen to finish the find session.
In this tutorial, we will then navigate back to the previous screen to finish the pick session.

```js
barcodePickView.uiListener = {
Expand Down
2 changes: 1 addition & 1 deletion docs/sdks/cordova/matrixscan-pick/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ The `BarcodePickView` displays a **Finish** button next to its shutter button.

Register a [BarcodePickViewUiListener](https://docs.scandit.com/data-capture-sdk/cordova/barcode-capture/api/ui/barcode-pick-view.html#interface-scandit.datacapture.barcode.pick.ui.IBarcodePickViewUiListener) to be notified what items have been found once the finish button is pressed.

In this tutorial, we will then navigate back to the previous screen to finish the find session.
In this tutorial, we will then navigate back to the previous screen to finish the pick session.

```js
barcodePickView.uiListener = {
Expand Down
4 changes: 2 additions & 2 deletions docs/sdks/flutter/matrixscan-pick/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ Connect the `BarcodePickView` to the Widget lifecycle. The widget is dependent o
@override
void didChangeAppLifecycleState(AppLifecycleState state) {
if (state == AppLifecycleState.resumed) {
// Resume finding by calling the BarcodePickView widgetResumed function.
// Resume scanning by calling the BarcodePickView widgetResumed function.
// Under the hood, it re-enables the BarcodePick mode and makes sure the view is properly
// setup.
barcodePickView.widgetResumed();
} else {
// Pause finding by calling the BarcodePickView widgetPaused function.
// Pause scanning by calling the BarcodePickView widgetPaused function.
// Under the hood, it will disable the mode and free resources that are not needed in a
// paused state.
barcodePickView.widgetPaused();
Expand Down
18 changes: 9 additions & 9 deletions docs/sdks/net/android/matrixscan-pick/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ You can use a `BarcodePickView` from XAML in your MAUI application.
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:scandit="clr-namespace:Scandit.DataCapture.Barcode.Pick.UI.Maui;assembly=ScanditBarcodeCaptureMaui"
x:Class="MyFindBarcodePage">
x:Class="PickBarcodePage">
<ContentPage.Content>
<AbsoluteLayout>
<scandit:BarcodePickView
Expand All @@ -118,9 +118,9 @@ You can use a `BarcodePickView` from XAML in your MAUI application.
You can configure your view in the code behind class. For example:

```csharp
public partial class MyFindBarcodePage : ContentPage
public partial class PickBarcodePage : ContentPage
{
public MyFindBarcodePage()
public PickBarcodePage()
{
this.InitializeComponent();

Expand Down Expand Up @@ -155,12 +155,12 @@ public override void OnPause()
}
```

If your are developing on MAUI then connect the BarcodePickView to the MAUI page lifecycle.
If you are developing on MAUI then connect the BarcodePickView to the MAUI page lifecycle.

In particular, make sure to call `BarcodePickView.OnResume` on your [`Element.HandlerChanged`](https://learn.microsoft.com/en-us/dotnet/api/microsoft.maui.controls.element.handlerchanged) event and `BarcodePickView.OnPause` on your [`Page.OnDisappearing`](https://learn.microsoft.com/en-us/dotnet/api/microsoft.maui.controls.page.ondisappearing).

```csharp
public FindBarcodePage()
public PickBarcodePage()
{
this.BarcodePickView.HandlerChanged += SetupBarcodePickView;
}
Expand All @@ -186,7 +186,7 @@ The `BarcodePickView` displays a **Finish** button next to its shutter button.

Subscribe to a `BarcodePickView.onFinishButtonTapped` event to be notified what items have been found once the finish button is pressed.

In this tutorial, we will then navigate back to the previous screen to finish the find session.
In this tutorial, we will then navigate back to the previous screen to finish the pick session.

```csharp
BarcodePickView.FinishButtonTapped += (object? sender, FinishButtonTappedEventArgs e) =>
Expand All @@ -195,9 +195,9 @@ BarcodePickView.FinishButtonTapped += (object? sender, FinishButtonTappedEventAr
};
```

However, this convenient “finish” button is not supported with MAUI development. You can create the button manually and invoke `BarcodePickView.StopSearching` to achieve the same functionality. The following code snippet demonstrates how to do this:
However, this convenient “finish” button is not supported with MAUI development. You can create the button manually and invoke `BarcodePickView.Stop()` to achieve the same functionality. The following code snippet demonstrates how to do this:

`FindBarcodePage.xaml`:
`PickBarcodePage.xaml`:
```csharp
<AbsoluteLayout>
(...)
Expand All @@ -208,7 +208,7 @@ However, this convenient “finish” button is not supported with MAUI developm
</AbsoluteLayout>
```

`FindBarcodePage.xaml.cs`:
`PickBarcodePage.xaml.cs`:
```csharp
private void FinishButtonClicked(object? sender, EventArgs args)
{
Expand Down
34 changes: 17 additions & 17 deletions docs/sdks/net/ios/matrixscan-pick/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ You can use a `BarcodePickView` from XAML in your MAUI application.
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:scandit="clr-namespace:Scandit.DataCapture.Barcode.Pick.UI.Maui;assembly=ScanditBarcodeCaptureMaui"
x:Class="MyFindBarcodePage">
x:Class="PickBarcodePage">
<ContentPage.Content>
<AbsoluteLayout>
<scandit:BarcodePickView
Expand All @@ -118,9 +118,9 @@ You can use a `BarcodePickView` from XAML in your MAUI application.
You can configure your view in the code behind class. For example:

```csharp
public partial class MyFindBarcodePage : ContentPage
public partial class PickBarcodePage : ContentPage
{
public MyFindBarcodePage()
public PickBarcodePage()
{
this.InitializeComponent();

Expand All @@ -139,43 +139,43 @@ public partial class MyFindBarcodePage : ContentPage
For MAUI development add the [`Scandit.DataCapture.Barcode.Maui`](https://www.nuget.org/packages/Scandit.DataCapture.Barcode.Maui) NuGet package into your project.
:::

Connect the `BarcodePickView` to the iOS view controller lifecycle. In particular, make sure to call `BarcodePickView.prepareSearching()` on your UIViewController’s [`viewWillAppear`](https://developer.apple.com/documentation/uikit/uiviewcontroller/1621510-viewwillappear) method to make sure that start up time is optimal.
Connect the `BarcodePickView` to the iOS view controller lifecycle: call `BarcodePickView.Start()` in your UIViewController’s [`viewWillAppear`](https://developer.apple.com/documentation/uikit/uiviewcontroller/1621510-viewwillappear) method and `BarcodePickView.Stop()` in [`viewWillDisappear`](https://developer.apple.com/documentation/uikit/uiviewcontroller/viewwilldisappear(_:)).

```csharp
public override void ViewWillAppear(bool animated)
{
base.ViewWillAppear(animated);
BarcodePickView.PrepareSearching();
BarcodePickView.Start();
}

public override void ViewWillDisappear(bool animated)
{
base.ViewWillDisappear(animated);
BarcodePickView.StopSearching();
BarcodePickView.Stop();
}
```

If your are developing on MAUI then connect the BarcodePickView to the MAUI page lifecycle.
If you are developing on MAUI then connect the BarcodePickView to the MAUI page lifecycle.

In particular, make sure to call `BarcodePickView.OnResume` on your [`Element.HandlerChanged`](https://learn.microsoft.com/en-us/dotnet/api/microsoft.maui.controls.element.handlerchanged) event and `BarcodePickView.OnPause` on your [`Page.OnDisappearing`](https://learn.microsoft.com/en-us/dotnet/api/microsoft.maui.controls.page.ondisappearing).
In particular, make sure to call `BarcodePickView.Start()` on your [`Element.HandlerChanged`](https://learn.microsoft.com/en-us/dotnet/api/microsoft.maui.controls.element.handlerchanged) event and `BarcodePickView.Stop()` on your [`Page.OnDisappearing`](https://learn.microsoft.com/en-us/dotnet/api/microsoft.maui.controls.page.ondisappearing).

```csharp
public FindBarcodePage()
public PickBarcodePage()
{
this.BarcodePickView.HandlerChanged += SetupBarcodePickView;
}

private void SetupBarcodePickView(object? sender, EventArgs args)
{
#if __IOS__
this.BarcodePickView.PrepareSearching();
this.BarcodePickView.Start();
#endif
}

protected override void OnDisappearing()
{
base.OnDisappearing();
this.BarcodePickView.StopSearching();
this.BarcodePickView.Stop();
}
```

Expand All @@ -185,7 +185,7 @@ The `BarcodePickView` displays a **Finish** button next to its shutter button.

Subscribe to a `BarcodePickView.onFinishButtonTapped` event to be notified what items have been found once the finish button is pressed.

In this tutorial, we will then navigate back to the previous screen to finish the find session.
In this tutorial, we will then navigate back to the previous screen to finish the pick session.

```csharp
BarcodePickView.FinishButtonTapped += (object? sender, FinishButtonTappedEventArgs e) =>
Expand All @@ -194,9 +194,9 @@ BarcodePickView.FinishButtonTapped += (object? sender, FinishButtonTappedEventAr
};
```

However, this convenient “finish” button is not supported with MAUI development. You can create the button manually and invoke `BarcodePickView.StopSearching` to achieve the same functionality. The following code snippet demonstrates how to do this:
However, this convenient “finish” button is not supported with MAUI development. You can create the button manually and invoke `BarcodePickView.Stop()` to achieve the same functionality. The following code snippet demonstrates how to do this:

`FindBarcodePage.xaml`:
`PickBarcodePage.xaml`:
```csharp
<AbsoluteLayout>
(...)
Expand All @@ -207,21 +207,21 @@ However, this convenient “finish” button is not supported with MAUI developm
</AbsoluteLayout>
```

`FindBarcodePage.xaml.cs`:
`PickBarcodePage.xaml.cs`:
```csharp
private void FinishButtonClicked(object? sender, EventArgs args)
{
if (Application.Current?.MainPage is NavigationPage navigation)
{
BarcodePickView.StopSearching();
BarcodePickView.Stop();
navigation.PopToRootAsync(animated: true);
}
}
```

## Start Searching

With everything configured, you can now start searching for items. This is done by calling `BarcodePickView.start()`.
With everything configured, you can now start searching for items. This is done by calling `BarcodePickView.Start()`.

```csharp
barcodePickView.Start();
Expand Down
2 changes: 1 addition & 1 deletion docs/sdks/react-native/matrixscan-pick/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ The `BarcodePickView` displays a **Finish** button next to its shutter button.

Register a [BarcodePickViewUiListener](https://docs.scandit.com/data-capture-sdk/react-native/barcode-capture/api/ui/barcode-pick-view.html#interface-scandit.datacapture.barcode.pick.ui.IBarcodePickViewUiListener) to be notified what items have been found once the finish button is pressed.

In this tutorial, we will then navigate back to the previous screen to finish the find session.
In this tutorial, we will then navigate back to the previous screen to finish the pick session.

```js
barcodePickView.uiListener = {
Expand Down
Loading