Motion Activity
Motion Activity Recogntion Services
Area | Value |
---|---|
NuGet | |
Service | Shiny.Locations.IMotionActivityManager |
Auto-Register | NO |
Static Class | ShinyMotionActivity |
Startup File
using Microsoft.Extensions.DependencyInjection;
using Shiny;
namespace YourNamespace
{
public class YourShinyStartup : ShinyStartup
{
public override void ConfigureServices(IServiceCollection services, IPlatform platform)
{
services.UseMotionActivity();
}
}
}
Platform Setup
Minimum Version: 12
Info.plist
<!DOCTYPE plist PUBLIC " -//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version=\"1.0\">
<dict>
<key>NSMotionUsageDescription</key>
<string>Say something useful here that your users will understand</string>
</dict>
</plist>