public class BaseMultipleObjectsDetectorActivity
Encapsulates all logic for multiple object detection in one RTU component.
Can be started using Activity.startActivityForResult
with Intent from MultipleObjectsDetectorActivity.newIntent -
note the requestCode passed.
Override Activity.onActivityResult and look for noted requestCode.
Obtain detection result using BaseMultipleObjectsDetectorActivity.parseActivityResult method.
Also see class MultipleObjectsDetectorConfiguration, RESULT_LICENSE_INVALID
@NotNull public static java.lang.String MULTIPLE_OBJECTS_DETECTOR_CUSTOM_CONFIGURATION
@NotNull public static java.lang.String SNAPPED_OBJECTS_EXTRA
public static int RESULT_LICENSE_INVALID
Check for this resultCode in Activity.onActivityResult in calling activity
to know if there are problems with SDK license.
public static io.scanbot.sdk.ui.view.multiple_objects.BaseMultipleObjectsDetectorActivity.Companion Companion
public BaseMultipleObjectsDetectorActivity()
Encapsulates all logic for multiple object detection in one RTU component.
Can be started using Activity.startActivityForResult
with Intent from MultipleObjectsDetectorActivity.newIntent -
note the requestCode passed.
Override Activity.onActivityResult and look for noted requestCode.
Obtain detection result using BaseMultipleObjectsDetectorActivity.parseActivityResult method.
Also see class MultipleObjectsDetectorConfiguration, RESULT_LICENSE_INVALID
protected void onCreate(@Nullable
android.os.Bundle savedInstanceState)
@NotNull public BaseMultipleObjectsDetectorFragment createFragment(@NotNull java.util.Map<java.lang.String,? extends java.io.Serializable> scannerConfiguration)
Creates a corresponding fragment for multiple objects detector
public void onCancelSnapping()
User wants to cancel snapping
public void onCancelSnappingLicenseInvalid()
Cancel snapping because of the invalid license
public void requestCameraPermission()
User want to request camera permission
public void saveAndCloseSnapping(@NotNull
io.scanbot.sdk.ui.view.multiple_objects.MultipleObjectsDetectorPresenter.Companion.SaveAndFinishSnapping data)
User wants to finish snapping and proceed with snapped objects