iPhoneSettings.locationServiceStatus 定位服务状态

static var locationServiceStatus : LocationServiceStatus

Description描述

Returns location service status.

返回定位服务的状态。

"Stopped" - service is not started yet. Call iPhoneSettings.StartLocationServiceUpdates to start it.
"Stopped" - 服务还没有开始。调用iPhoneSettings.StartLocationServiceUpdates开启服务。

"Initializing" - service was started, but still initializing. Wait for some time and check status again.
"Initializing" - 服务开始,但仍然在初始化状态。等待一些时候再次检查状态。

"Running" - service is up and running, last location info could be retrieved.
"Running" - 服务开始并运行中,最近的位置信息可能被取回。

"Failed" - service startup failed, user denied access to device location.
"Failed" - 服务启动失败,用户拒绝通过定位服务

最后修改:2011年4月24日 Sunday 15:13

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。