PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → GPS - Disable Notification Handling - Desabilita Notificacao Movimentacao
GPS - Disable Notification Handling - Desabilita Notificacao Movimentacao
Débuté par adrianoboller, 24 nov. 2014 12:51 - Aucune réponse
Membre enregistré
3 657 messages
Popularité : +175 (223 votes)
Posté le 24 novembre 2014 - 12:51
Procedure GPS_DesabilitaNotificacaoMovimentacao(LOCAL Msg, LOCAL WindowSN)

// Finalidade: Desativa a exibição de mensagens passadas ao usuário, cancelando a atualização dos pontos.

Retorno is string = ""

IF GPSStatus() = gpsEnabled OR GPSStatus() = gpsAvailable THEN

GPSFollowMovement()

IF Msg <> "" AND WindowSN = "S" THEN
Info(Msg)
Retorno = Msg
ELSE IF Msg <> "" AND WindowSN <> "S" THEN
Retorno = Msg
END

ELSE IF GPSStatus() = gpsDisabled THEN

Info("GPS Desabilitado!")

ELSE IFGPSStatus() = gpsOffService OR GPSStatus() = gpsUnavailable OR GPSStatus() = gpsError THEN

Info("Região sem serviço de GPS",ErrorInfo())

END

RESULT(Retorno)