Class TActivityRecognition

Unit

Declaration

type TActivityRecognition = class(TComponent)

Description

Activity recognition (detects user stationary, walking, running and so on) (TActivityRecognition).

Usage:

  1. Include the necessary integration code in your Android / iOS project.

    For iOS, add the "activity_regonition" service inside CastleEngineManifest.xml. See https://castle-engine.io/ios-Services and https://github.com/castle-engine/castle-engine/blob/master/tools/build-tool/data/ios/services/activity_recognition/README.md .

    Build your project with the Castle Game Engine build tool: https://castle-engine.io/build_tool .

  2. Create an instance of this class. Only a single instance of this class is allowed.

  3. Call TActivityRecognition.Start.

  4. Read TActivityRecognition.Activity, TActivityRecognition.PossibleActivities at any point. You can assign a callback to TActivityRecognition.OnChange to be notified about changes.

Source: services/castleactivityrecognition.pas (line 74).

Hierarchy

  • TObject
  • TPersistent
  • TComponent
  • TActivityRecognition

Generated by PasDoc 0.17.0.snapshot.