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

Method get_descriptors

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

Source from the content-addressed store, hash-verified

531 }
532
533 pub fn get_descriptors(&self) -> Result<Vec<JBluetoothGattDescriptor>> {
534 let obj = self
535 .env
536 .call_method_unchecked(
537 self.internal,
538 self.get_descriptors,
539 JavaType::Object("Ljava/util/List;".to_string()),
540 &[],
541 )?
542 .l()?;
543 let desc_list = JList::from_env(self.env, obj)?;
544 let mut desc_vec = vec![];
545 for desc in desc_list.iter()? {
546 desc_vec.push(JBluetoothGattDescriptor::from_env(self.env, desc)?);
547 }
548 Ok(desc_vec)
549 }
550}
551
552pub struct JBluetoothGattDescriptor<'a: 'b, 'b> {

Callers 2

discover_servicesMethod · 0.80
discover_servicesMethod · 0.80

Calls 1

iterMethod · 0.80

Tested by

no test coverage detected