CraftAR Unity Pro SDK  1.0
Classes | Public Member Functions | Static Public Member Functions | List of all members
CraftAROnDeviceIR Class Reference

This class allows to perform OnDevice Image Recognition searches on the CraftAR service. The CraftAROnDeviceIR singleton instance is in charge of sending the camera frames or pictures to the CraftAR Service and producing the callbacks whith the responses. More...

Inheritance diagram for CraftAROnDeviceIR:

Classes

interface  CollectionCallbacks
 The CollectionCallbacks interface defines the callbacks used by the CraftARSDK to notify the app about CraftAROnDeviceCollection related events. More...
 
interface  OnDeviceCallbacks
 The OnDeviceCallbacks interface defines the callbacks used by the CraftARSDK to notify the app about CraftAROnDeviceIR related events. More...
 

Public Member Functions

void setSearchCallbacksHandler (OnDeviceCallbacks onDeviceCallbacks)
 Sets the search callback handler. Use this method to get callbacks with the search responses and events. More...
 
void setCollectionCallbacksHandler (CollectionCallbacks collectionCallbacks)
 
void setCollection (CraftAROnDeviceCollection collection)
 
void unloadCollection (string collectionUUID)
 

Static Public Member Functions

static CraftAROnDeviceIR Instance ()
 Return the singleton instance of the CraftAROnDeviceIR. More...
 

Detailed Description

This class allows to perform OnDevice Image Recognition searches on the CraftAR service. The CraftAROnDeviceIR singleton instance is in charge of sending the camera frames or pictures to the CraftAR Service and producing the callbacks whith the responses.

Member Function Documentation

◆ Instance()

static CraftAROnDeviceIR CraftAROnDeviceIR.Instance ( )
inlinestatic

Return the singleton instance of the CraftAROnDeviceIR.

◆ setCollection()

void CraftAROnDeviceIR.setCollection ( CraftAROnDeviceCollection  collection)
inline

Loads the collection if it's not loaded, and sets it as the active collection for OnDevice Image Recognition

Parameters
collectionTokenToken of the collection
listenerListener that receives the callbacks

◆ setSearchCallbacksHandler()

void CraftAROnDeviceIR.setSearchCallbacksHandler ( OnDeviceCallbacks  onDeviceCallbacks)
inline

Sets the search callback handler. Use this method to get callbacks with the search responses and events.

Parameters
onDeviceCallbacksOnDevice callbacks.

◆ unloadCollection()

void CraftAROnDeviceIR.unloadCollection ( string  collectionUUID)
inline

Unloads a collection from the On Device Image Recognition

Parameters
collectionThe collection to be unloaded.

The documentation for this class was generated from the following file: