{"id":12805329,"url":"https://github.com/videokit-ai/natstep","last_synced_at":"2025-02-27T16:31:28.585Z","repository":{"id":39346829,"uuid":"94371200","full_name":"videokit-ai/natstep","owner":"videokit-ai","description":"Cross-platform step counting for Unity Engine.","archived":true,"fork":false,"pushed_at":"2021-01-14T21:29:54.000Z","size":451,"stargazers_count":107,"open_issues_count":0,"forks_count":25,"subscribers_count":11,"default_branch":"1.1","last_synced_at":"2024-10-01T10:31:35.242Z","etag":null,"topics":["android","ios","pedometer","unity"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/videokit-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-14T20:38:36.000Z","updated_at":"2024-09-16T07:05:07.000Z","dependencies_parsed_at":"2022-09-20T01:12:31.229Z","dependency_job_id":null,"html_url":"https://github.com/videokit-ai/natstep","commit_stats":null,"previous_names":["vkt3d/natstep","videokit-ai/natstep"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videokit-ai%2Fnatstep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videokit-ai%2Fnatstep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videokit-ai%2Fnatstep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videokit-ai%2Fnatstep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/videokit-ai","download_url":"https://codeload.github.com/videokit-ai/natstep/tar.gz/refs/heads/1.1","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219842905,"owners_count":16556577,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","ios","pedometer","unity"],"created_at":"2024-07-19T10:42:05.861Z","updated_at":"2024-10-16T09:31:05.235Z","avatar_url":"https://github.com/videokit-ai.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pedometer API\nPedometer is a native pedometer API for the Unity game engine. The API provides sensor information about step count and distance covered (in meters). It is a minimalist API with native backends on iOS and Android.\n\n## Using the API\nTo use the API, simply create a `Pedometer` instance:\n```csharp\n// Create a pedometer\n// The OnStep callback will be invoked each time a step is detected\nvar pedometer = new Pedometer(OnStep);\n\nvoid OnStep (int steps, double distance) {\n    // Display the values\n    stepText.text = steps.ToString();\n    // Display distance in feet\n    distanceText.text = (distance * 3.28084).ToString(\"F2\") + \" ft\";\n}\n```\n\nWhen you are done detecting steps from a `Pedometer` instance, you must dispose it:\n```csharp\n// Dispose of this pedometer instance\npedometer.Dispose();\n```\n\n## Notes\n- On iOS, you must add an `NSMotionUsageDescription` key to the `Info.plist` in Xcode before building. This determines the message used to request pedometer permissions from the user.\n\n## Credits\n- [Yusuf Olokoba](mailto:olokobayusuf@gmail.com)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvideokit-ai%2Fnatstep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvideokit-ai%2Fnatstep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvideokit-ai%2Fnatstep/lists"}