stepstead-client/native/pedometer-ios/pedometer.h
jts 6a1706051d İlk commit: Stepstead Godot istemci (4.6 Mobile)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-11 11:31:35 +03:00

35 lines
752 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Stepstead — iOS Pedometer plugin (CMPedometer)
// Godot 4 iOS plugin. Singleton adı: "Pedometer"
//
// GDScript sözleşmesi (autoload/pedometer.gd ile eşleşir):
// bool is_available()
// void start()
// void stop()
// int get_step_count() -> oturum başından beri kümülatif adım
#ifndef STEPSTEAD_PEDOMETER_H
#define STEPSTEAD_PEDOMETER_H
#include "core/object/class_db.h"
#include "core/object/object.h"
class Pedometer : public Object {
GDCLASS(Pedometer, Object);
static Pedometer *instance;
protected:
static void _bind_methods();
public:
bool is_available();
void start();
void stop();
int get_step_count();
static Pedometer *get_singleton();
Pedometer();
~Pedometer();
};
#endif // STEPSTEAD_PEDOMETER_H