1. Home
  2. SDK iOS
  3. Advanced
  4. Preload/Destroy Resources

Preload/Destroy Resources

To reduce loading and appearing time of BearViewCotroller you could preload the BearSDK resources. At the same time you may need to release the memory used by BearSDK you have to use destroy method.

  • preload(_ bearDidLoad: (() -> Void)?) – Preloads the BearSDK resources, bearDidLoad closure will be executed when all resources will be loaded.
  • isLoaded – The status of the BearSDK resources.
  • destroy – Destroys all loaded BearSDK resources.

Note: once loaded Bear SDK resources will be kept until destroy is called.

Was this article helpful to you? Yes No

How can we help?