# fromNative Source: https://www.nianticspatial.com/docs/api/kotlin/com.nianticspatial.nsdk.sites.SitesError.fromNative/ fromNative Converts a native error code to a SitesError. --- ## Declaration @JvmStatic fun fromNative(code: Int): SitesError #### Summary Converts a native error code to a SitesError. #### Returns The corresponding SitesError. ### Parameters | Name | Type | Summary | | --- | --- | --- | | code | Int | The native error code from JNI. | ---