LDM Sample

2024-05-17
No Rating

Sample Introduction

LDM is the abbreviation of Local Data Mode. LDM is a module that allows users to control network access rights by function, and can control whether Mobile SDK can access the network. When LDM is turned on, it means entering Local Data Mode, and MSDK will not initiate any network requests. The LDM function is important in privacy data protection.

There are two modes of LDM startup:

  • Access to LDM server.
  • Directly read the local License file. Developers go to the official website of developers to apply for LDMopen in new window, and through the application, they can download the offline version license file.

The use of the LDM module can achieve the following three effects:

  • Completely disable all network access.
  • When LDM is closed, there is no restrictions on network requests.
  • Only allow exception modules to access the network as needed. For example, only the RTK module is allowed to access the RTK server to ensure the accuracy of positioning, or only the MSDK registered activation module is allowed to access the network while the rest of the modules are prohibited from accessing the network, or the flight-restricted and unbanned module is allowed to access the flight-restricted database server to ensure flight safety, etc.

Interface Calling Process

The following figure shows a complete interface display and an example of the interface calling process. For detailed usage, please check the API documentationopen in new window of Mobile SDK.

LDM.png

Sample Acquisition

Go to LDM Sample Codeopen in new window.

If you have any comments or confusion about our documentation, you can click here to give feedback and we will get back to you as soon as possible.