Barcode Pick View Highlight Style Async Provider

Defined in package com.scandit.datacapture.barcode.pick.ui

Note

Barcode Pick is still in beta and may change in future versions of Scandit Data Capture SDK.

BarcodePickViewHighlightStyleAsyncProvider
interface BarcodePickViewHighlightStyleAsyncProvider

Added in version 6.22.0

A callback to be provided to a BarcodePickViewHighlightStyle object that supports it. This callback allows to retrieve asynchronously the style to be applied to a highlight.

styleForRequest(request, callback)
void styleForRequest(@NonNull BarcodePickViewHighlightStyleRequest request,
        @NonNull BarcodePickViewHighlightStyleAsyncCallback callback)

Added in version 6.22.0

This method will be called every time a style for an item is needed. Once the style for the given request is resolved, the provided callback onData function should be invoked. Providing null will remove the overridden style for the item, that way the default style will be used.