LDM(Local Data Mode) manager is used to enable or disable the LDM mode. After enabling LDM, the MSDK's internet access will be restricted. You can callenableLDMto enable LDM mode. Also, you can configure the exempt modules when enabling the LDM in order to allow those modules to access internet. For example, allowing RTK module as an exempt module in LDM will allow the RTK module to connect with RTK server to ensure the accuracy of navigation. Also, allowing a flysafe module as an exempt module in LDM can still access the flysafe ever to ensure the safety of flight. You have to apply successfully from our developer website(https://developer.dji.com/user/ldm/) and receive a LDM licence in order to use this feature.
A method of enabling LDM mode. When calling this method, you can pass multiple LDMExemptModule parameters in. It means the exempt modules when LDM is enabled. E.g. When you pass RTK and FLY_SAFE in, those modules can still access internet after enabling LDM. Note: 1. You have to call this method before calling SDKManager.init() method in order to enable LDM. If you don't have an offline license, then you need to pass this parameter in, MSDK_INIT_AND_REGISTRATION. This will allow MSDK registration module to complete the registration. 2. Make sure your offline LDM license（license_appname.txt）is saved in the correct directory when you use an offline LDM license to enable LDM. You can use getLocalLDMLicensePath to get the offline LDM License path. 3. Except save the offline LDM license to the specified path, you can also call loadLocalLDMLicenseContent to load the content of LDM license to the LDM module. 4. If you don't have an offline LDM license, the first time you call this method will access DJI LDM server to download the LDM license. Later on, calling this method will read the local cache. 5. If you want to use the offline LDM license, you need to apply fromhttps://developer.dji.comloin your user account and apply.