MCPcopy Create free account
hub / github.com/deviceplug/btleplug / get_device

Method get_device

src/droidplug/jni/objects.rs:686–697  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

684 }
685
686 pub fn get_device(&self) -> Result<JBluetoothDevice<'a, 'b>> {
687 let obj = self
688 .env
689 .call_method_unchecked(
690 self.internal,
691 self.get_device,
692 JavaType::Object("Landroid/bluetooth/BluetoothDevice;".to_string()),
693 &[],
694 )?
695 .l()?;
696 JBluetoothDevice::from_env(self.env, obj)
697 }
698
699 pub fn get_scan_record(&self) -> Result<JScanRecord<'a, 'b>> {
700 let obj = self

Callers 1

try_fromMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected