addInstance

open fun addInstance(@NonNull instance: Vision): Int

Add an instance that can later be accessed dynamically for selection through CURRENT_PREVIEWING_VISION_INSTANCE_INDEX.

Return

The index that can be used to set the previewing instance index.

Parameters

instance

The instance to add.