public MotionActivityManagerImpl(AndroidContext context,
                                  AndroidSqliteDatabase database,
                                  IMessageBus messageBus)
 {
     this.context    = context;
     this.database   = database;
     this.messageBus = messageBus;
     this.client     = ActivityRecognition.GetClient(context.AppContext);
 }
示例#2
0
 public MotionActivityManagerImpl(ShinyCoreServices core,
                                  AndroidSqliteDatabase database,
                                  ILogger <IMotionActivityManager> logger)
 {
     this.core      = core;
     this.database  = database;
     this.logger    = logger;
     this.client    = ActivityRecognition.GetClient(core.Android.AppContext);
     this.eventSubj = new Subject <MotionActivityEvent>();
 }
示例#3
0
 public MotionActivityBroadcastReceiver()
 {
     this.messageBus = ShinyHost.Resolve <IMessageBus>();
     this.database   = ShinyHost.Resolve <AndroidSqliteDatabase>();
 }