`registerDeviceWithAdapter:`