Class MopHandler
Handler in charge of providing functionality related to the Mop (Method of Operation) module.
Inherited Members
Namespace: Appearition.Mop
Assembly: Appearition.SDK.dll
Syntax
public class MopHandler : BaseFloARHandler
Methods
FetchAllMopDocumentInfo(MopSyncManifest, Action<MopSyncManifest>, Action<EmsError>, Action<Boolean>)
Updates the given mop document content. Only the difference in content will be downloaded for a lightweight transfer. Consider storing that content locally for making full use of this system. In case of no connection, will simply load the existing data.
API Requirement: Session Token. Offline Capability.
Declaration
public static void FetchAllMopDocumentInfo(MopSyncManifest localMopData, Action<MopSyncManifest> onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
MopSyncManifest | localMopData | |
System.Action<MopSyncManifest> | onSuccess | Contains the difference between the provided data and the data on the EMS. 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. |
FetchAllMopDocumentInfo(MopSyncManifest, Boolean, Action<MopSyncManifest>, Action<EmsError>, Action<Boolean>)
Updates the given mop document content. Only the difference in content will be downloaded for a lightweight transfer. Consider storing that content locally for making full use of this system. In case of no connection, will simply load the existing data.
API Requirement: Session Token. Offline Capability.
Declaration
public static void FetchAllMopDocumentInfo(MopSyncManifest localMopsData, bool downloadMopDocuments, Action<MopSyncManifest> onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
MopSyncManifest | localMopsData | |
System.Boolean | downloadMopDocuments | Whether or not the Mop documents files should also be downloaded. |
System.Action<MopSyncManifest> | onSuccess | Contains the difference between the provided data and the data on the EMS. 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. |
FetchAllMopDocumentInfo(Action<MopSyncManifest>, Action<EmsError>, Action<Boolean>)
Fetches all the mop document content from the EMS. If you have existing content, pass in a MopSyncManifest and the difference will be returned instead. In case of no connection, will simply load the existing data.
API Requirement: Session Token. Offline Capability.
Declaration
public static void FetchAllMopDocumentInfo(Action<MopSyncManifest> onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action<MopSyncManifest> | onSuccess | Contains all the Mop data on the EMS. 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. |
FetchAllMopDocumentInfo(Boolean, Action<MopSyncManifest>, Action<EmsError>, Action<Boolean>)
Fetches all the mop document content from the EMS. If you have existing content, pass in a MopSyncManifest and the difference will be returned instead. In case of no connection, will simply load the existing data.
API Requirement: Session Token. Offline Capability.
Declaration
public static void FetchAllMopDocumentInfo(bool downloadMopDocuments, Action<MopSyncManifest> onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | downloadMopDocuments | Whether or not the Mop documents files should also be downloaded. |
System.Action<MopSyncManifest> | onSuccess | Contains all the Mop data on the EMS. 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. |
FetchAllMopDocumentInfoProcess(MopSyncManifest, Action<MopSyncManifest>, Action<EmsError>, Action<Boolean>)
Updates the given mop document content. Only the difference in content will be downloaded for a lightweight transfer. Consider storing that content locally for making full use of this system. In case of no connection, will simply load the existing data.
API Requirement: Session Token. Offline Capability.
Declaration
public static IEnumerator FetchAllMopDocumentInfoProcess(MopSyncManifest localMopsData, Action<MopSyncManifest> onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
MopSyncManifest | localMopsData | |
System.Action<MopSyncManifest> | onSuccess | Contains the difference between the provided data and the data on the EMS. 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 |
FetchAllMopDocumentInfoProcess(MopSyncManifest, Boolean, Action<MopSyncManifest>, Action<EmsError>, Action<Boolean>)
Updates the given mop document content. Only the difference in content will be downloaded for a lightweight transfer. Consider storing that content locally for making full use of this system. In case of no connection, will simply load the existing data.
API Requirement: Session Token. Offline Capability.
Declaration
public static IEnumerator FetchAllMopDocumentInfoProcess(MopSyncManifest localMopsData, bool downloadMopDocuments, Action<MopSyncManifest> onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
MopSyncManifest | localMopsData | |
System.Boolean | downloadMopDocuments | Whether or not the Mop documents files should also be downloaded. |
System.Action<MopSyncManifest> | onSuccess | Contains the difference between the provided data and the data on the EMS. 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 |
FetchAllMopDocumentInfoProcess(Action<MopSyncManifest>, Action<EmsError>, Action<Boolean>)
Fetches all the mop document content from the EMS. If you have existing content, pass in a MopSyncManifest and the difference will be returned instead. In case of no connection, will simply load the existing data.
API Requirement: Session Token. Offline Capability.
Declaration
public static IEnumerator FetchAllMopDocumentInfoProcess(Action<MopSyncManifest> onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
System.Action<MopSyncManifest> | onSuccess | Contains all the Mop data on the EMS. 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 |
FetchAllMopDocumentInfoProcess(Boolean, Action<MopSyncManifest>, Action<EmsError>, Action<Boolean>)
Fetches all the mop document content from the EMS. If you have existing content, pass in a MopSyncManifest and the difference will be returned instead. In case of no connection, will simply load the existing data.
API Requirement: Session Token. Offline Capability.
Declaration
public static IEnumerator FetchAllMopDocumentInfoProcess(bool downloadMopDocuments, Action<MopSyncManifest> onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | downloadMopDocuments | Whether or not the Mop documents files should also be downloaded. |
System.Action<MopSyncManifest> | onSuccess | Contains all the Mop data on the EMS. 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 |
FetchMopDocumentFile(Mop, Boolean, Action<Mop>, Action<EmsError>, Action<Boolean>)
Given document data, downloads the file if required, and loads the document into memory if required.
API Requirement: Session Token. Offline Capability.
Declaration
public static void FetchMopDocumentFile(Mop document, bool loadInMemory, Action<Mop> onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
Mop | document | The original MopDocument, which might not contain any runtime data. |
System.Boolean | loadInMemory | Whether or not the file content is to be loaded in memory. |
System.Action<Mop> | onSuccess | Contains the updated MopDocument. 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. |
FetchMopDocumentFileProcess(Mop, Boolean, Action<Mop>, Action<EmsError>, Action<Boolean>)
Given document data, downloads the file if required, and loads the document into memory if required.
API Requirement: Session Token. Offline Capability.
Declaration
public static IEnumerator FetchMopDocumentFileProcess(Mop document, bool loadInMemory, Action<Mop> onSuccess = null, Action<EmsError> onFailure = null, Action<bool> onComplete = null)
Parameters
Type | Name | Description |
---|---|---|
Mop | document | The original MopDocument, which might not contain any runtime data. |
System.Boolean | loadInMemory | Whether or not the file content is to be loaded in memory. |
System.Action<Mop> | onSuccess | Contains the updated MopDocument. 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 |