| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
The timezone sensor keeps track of the user’s current timezone.
iOS 13 or later
You can integrate this framework into your project via Swift Package Manager (SwiftPM).
Open Package Manager Windows
Find the package using the manager
Import the package into your target.
Class to hold the configuration of the sensor.
| Field | Type | Description |
|---|---|---|
| timezoneId | String | the timezone ID string, i.e., “America/Los_Angeles, GMT-08:00” |
| deviceId | String | AWARE device UUID |
| label | String | Customizable label. Useful for data calibration or traceability |
| timestamp | Int64 | unixtime milliseconds since 1970 |
| timezone | Int | Timezone of the device |
| os | String | Operating system of the device (ex. ios) |
| jsonVersion | Int | JSON schema version |
let timezoneSensor = TimezoneSensor.init(TimezoneSensor.Config().apply { config in
config.sensorObserver = Observer()
config.debug = true
})
timezoneSensor?.start()class Observer:TimezoneObserver{
func onTimezoneChanged(data: TimezoneData) {
// Your code here..
}
}Yuuki Nishiyama (The University of Tokyo), nishiyama@csis.u-tokyo.ac.jp
Copyright (c) 2025 AWARE Mobile Context Instrumentation Middleware/Framework (http://www.awareframework.com)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
| Back | FazBrowse Home | New Git URL |