Exemplos iOS
1. Inicialização Básica
import AppLocatorSDK
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
Task {
do {
try await LocatorServiceSdk.shared.start()
} catch {
print("Failed to start Locator SDK: \(error.localizedDescription)")
}
}
return true
}
}2. Inicialização com configuração
3. Inicialização com integrador
4. Exemplos de funções
Função destroy
destroyFunção execute
executeFunção getConfig
getConfigFunção getFeatures
getFeaturesFunção getGroups
getGroupsFunção getJwtToken
getJwtTokenFunção getSdkMode
getSdkModeFunção getSession
getSessionFunção getState
getStateFunção getVersion
getVersionFunção pendingPermissions
pendingPermissionsFunção registerIntegration
registerIntegrationFunção setConfig
setConfigFunção setFeatures
setFeaturesFunção setGeofences
setGeofencesFunção setGroups
setGroupsFunção setMutableLicense
setMutableLicenseFunção setSdkMode
setSdkModeFunção setState
setStateFunção sendEvents
sendEventsFunção sendLocations (sem parâmetros)
sendLocations (sem parâmetros)Função sendLocations (com parâmetro)
sendLocations (com parâmetro)Função start
startFunção stop
stopFunção syncAll
syncAllFunção syncConfig
syncConfigFunção syncFeatures
syncFeaturesFunção syncGeofences
syncGeofencesFunção syncGroups
syncGroupsFunção syncScopes
syncScopesLast updated
