temporary update
This commit is contained in:
@ -17,6 +17,19 @@ class MotionService {
|
||||
}
|
||||
}
|
||||
|
||||
Future<dynamic> _handleMotionData(MethodCall call) async {
|
||||
switch (call.method) {
|
||||
case 'onMotionData':
|
||||
final Map<String, dynamic> motionData = call.arguments;
|
||||
// ここでモーションデータを処理します
|
||||
print('Received motion data: $motionData');
|
||||
// 例: データを状態管理システムに渡す、UIを更新する等
|
||||
break;
|
||||
default:
|
||||
print('Unknown method ${call.method}');
|
||||
}
|
||||
}
|
||||
|
||||
static Future<void> stopMotionUpdates() async {
|
||||
if (Platform.isIOS) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user