public RingServiceConnection(RingServiceBinder binder) { if (binder != null) { this.binder = binder; } }
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 }); } }