invoke
suspend operator fun invoke(coordinates: CoordinatesData, companyId: Int? = null, sessionToken: String? = null): ResultS1SDK<Boolean, ErrorS1SDK>
Sends a panic alarm to the API.
Return
Parameters
coordinates
CoordinatesData the coordinates of the device that the panic alarm will be sent.
companyId
Int the company ID of the user that the panic alarm will be sent. If null, the company ID will be try to be obtained from the current session.
sessionToken
String an specific session token for consuming the API. Only is required when you have an specific custom session handling with a valid session token for this request or you did not set the initial SDK setup. If null, you must have to set the initial SDK setup for handling automatically the session behind the scenes.