コード例 #1
0
 public AfazerServiceConnection(HorarioAfazerBinder binder)
 {
     if (binder != null)
     {
         this.binder = binder;
     }
 }
コード例 #2
0
        public void OnServiceConnected(ComponentName name, IBinder service)
        {
            var serviceBinder = service as HorarioAfazerBinder;

            if (serviceBinder != null)
            {
                binder         = serviceBinder;
                binder.IsBound = true;
                Log.Debug("Service Connection", "OnServiceConnected Called");
                ServiceConnected(this, new ServiceConnectedEventArgs {
                    Binder = service
                });
                serviceBinder.Service.VerificaHorarios();
            }
        }