# download Source: https://www.nianticspatial.com/docs/api/kotlin/com.nianticspatial.nsdk.mesh.MeshDownloaderSession.download/ download --- ## Declaration @Deprecated( "Use downloadByAsset instead. Site IDs and asset IDs are the preferred mechanisms for " + "identifying maps in NSDK. This function is deprecated and does not support maps created " + "from 360 camera captures." ) suspend fun download( payload: String, getTexture: Boolean, maxDownloadSizeKb: Int? = null, timeoutMillis: Long = TIMEOUT_MS ): AsyncResult, MeshDownloaderError> #### Summary Deprecated Asynchronously downloads a mesh for a given location payload. This function suspends execution until the download operation is complete, has failed, or has timed out. #### Returns An AsyncResult which will be either AsyncResult.Success containing the mesh data, AsyncResult.Error detailing the failure reason, or AsyncResult.Timeout indicating a timeout in the download process. ---