Class ImageRecognitionHandler
Handles Image Recognition related API requests, which include getting and editing the Data Store entries. Those Data Store entries are related to the Image Recognition settings of external providers as on the EMS. When an Image Recognition is configured on the EMS, the future TargetImages will be synced with said provider.
Inherited Members
Namespace: Appearition.ImageRecognition
Assembly: Appearition.SDK.dll
Syntax
public sealed class ImageRecognitionHandler : BaseHandler
Methods
View SourceGetAllAvailableProviders(Action<List<DataStore>>, Action<EmsError>, Action<Boolean>)
Fetches all the ArProviders available for the selected channel.
API Requirement: Session Token. Offline Capability.
Declaration
public static void GetAllAvailableProviders(Action<List<DataStore>> onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Collections.Generic.List<DataStore>> | onSuccess | Contains all the ArProvider DataStores relevant to this channel. Only called if the request is successful. |
System.Action<EmsError> | onFailure | Contains any error obtained during the request. Only called if the request has failed. |
System.Action<System.Boolean> | onComplete | Always called at the end of the request, defines whether the request was successful or not. |
GetAllAvailableProviders(Int32, Action<List<DataStore>>, Action<EmsError>, Action<Boolean>)
Fetches all the ArProviders available for a given channel by ids.
API Requirement: Session Token. Offline Capability.
Declaration
public static void GetAllAvailableProviders(int channelId, Action<List<DataStore>> onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | channelId | The id of the targeted channel. |
System.Action<System.Collections.Generic.List<DataStore>> | onSuccess | Contains all the ArProvider DataStores relevant to this channel. Only called if the request is successful. |
System.Action<EmsError> | onFailure | Contains any error obtained during the request. Only called if the request has failed. |
System.Action<System.Boolean> | onComplete | Always called at the end of the request, defines whether the request was successful or not. |
GetAllAvailableProvidersProcess(Action<List<DataStore>>, Action<EmsError>, Action<Boolean>)
Fetches all the ArProviders available for the selected channel.
API Requirement: Session Token. Offline Capability.
Declaration
public static IEnumerator GetAllAvailableProvidersProcess(Action<List<DataStore>> onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action<System.Collections.Generic.List<DataStore>> | onSuccess | Contains all the ArProvider DataStores relevant to this channel. Only called if the request is successful. |
System.Action<EmsError> | onFailure | Contains any error obtained during the request. Only called if the request has failed. |
System.Action<System.Boolean> | onComplete | Always called at the end of the request, defines whether the request was successful or not. |
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
GetAllAvailableProvidersProcess(Int32, Action<List<DataStore>>, Action<EmsError>, Action<Boolean>)
Fetches all the ArProviders available for a given channel by ids.
API Requirement: Session Token. Offline Capability.
Declaration
public static IEnumerator GetAllAvailableProvidersProcess(int channelId, Action<List<DataStore>> onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | channelId | The id of the targeted channel. |
System.Action<System.Collections.Generic.List<DataStore>> | onSuccess | Contains all the ArProvider DataStores relevant to this channel. Only called if the request is successful. |
System.Action<EmsError> | onFailure | Contains any error obtained during the request. Only called if the request has failed. |
System.Action<System.Boolean> | onComplete | Always called at the end of the request, defines whether the request was successful or not. |
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
SetProviderData(DataStore, Action, Action<EmsError>, Action<Boolean>)
Creates or updates a ArProvider entry in the EMS using the given data. Do note that the provider name field will be used to match data with an existing entry.
API Requirement: Session Token.
Declaration
public static void SetProviderData(DataStore providerData, Action onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
DataStore | providerData | ArProvider DataStore you wish to create or update. |
System.Action | onSuccess | Contains all the ArProvider DataStores relevant to this channel. Only called if the request is successful. |
System.Action<EmsError> | onFailure | Contains any error obtained during the request. Only called if the request has failed. |
System.Action<System.Boolean> | onComplete | Always called at the end of the request, defines whether the request was successful or not. |
SetProviderData(Int32, DataStore, Action, Action<EmsError>, Action<Boolean>)
Creates or updates a ArProvider entry in the EMS using the given data. Do note that the provider name field will be used to match data with an existing entry.
API Requirement: Session Token.
Declaration
public static void SetProviderData(int channelId, DataStore providerData, Action onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | channelId | |
DataStore | providerData | ArProvider DataStore you wish to create or update. |
System.Action | onSuccess | Contains all the ArProvider DataStores relevant to this channel. Only called if the request is successful. |
System.Action<EmsError> | onFailure | Contains any error obtained during the request. Only called if the request has failed. |
System.Action<System.Boolean> | onComplete | Always called at the end of the request, defines whether the request was successful or not. |
SetProviderDataProcess(DataStore, Action, Action<EmsError>, Action<Boolean>)
Creates or updates a ArProvider entry in the EMS using the given data. Do note that the provider name field will be used to match data with an existing entry.
API Requirement: Session Token.
Declaration
public static IEnumerator SetProviderDataProcess(DataStore providerData, Action onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
DataStore | providerData | ArProvider DataStore you wish to create or update. |
System.Action | onSuccess | Contains all the ArProvider DataStores relevant to this channel. Only called if the request is successful. |
System.Action<EmsError> | onFailure | Contains any error obtained during the request. Only called if the request has failed. |
System.Action<System.Boolean> | onComplete | Always called at the end of the request, defines whether the request was successful or not. |
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
SetProviderDataProcess(Int32, DataStore, Action, Action<EmsError>, Action<Boolean>)
Creates or updates a ArProvider entry in the EMS using the given data. Do note that the provider name field will be used to match data with an existing entry.
API Requirement: Session Token.
Declaration
public static IEnumerator SetProviderDataProcess(int channelId, DataStore providerData, Action onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | channelId | The id of the targeted channel. |
DataStore | providerData | ArProvider DataStore you wish to create or update. |
System.Action | onSuccess | Contains all the ArProvider DataStores relevant to this channel. Only called if the request is successful. |
System.Action<EmsError> | onFailure | Contains any error obtained during the request. Only called if the request has failed. |
System.Action<System.Boolean> | onComplete | Always called at the end of the request, defines whether the request was successful or not. |
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |