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

            if (serviceBinder != null)
            {
                this.binder         = serviceBinder;
                this.binder.IsBound = true;
                this.ServiceConnected(this, new ServiceConnectedEventArgs()
                {
                    Binder = service
                });
            }
        }