(
&self,
uuid: JUuid<'a, 'b>,
data: JObject<'a>,
write_type: jint,
)
| 227 | } |
| 228 | |
| 229 | pub fn write( |
| 230 | &self, |
| 231 | uuid: JUuid<'a, 'b>, |
| 232 | data: JObject<'a>, |
| 233 | write_type: jint, |
| 234 | ) -> Result<JFuture<'a, 'b>> { |
| 235 | let future_obj = self |
| 236 | .env |
| 237 | .call_method_unchecked( |
| 238 | self.internal, |
| 239 | self.write, |
| 240 | JavaType::Object("Lio/github/gedgygedgy/rust/future/Future;".to_string()), |
| 241 | &[uuid.into(), data.into(), write_type.into()], |
| 242 | )? |
| 243 | .l()?; |
| 244 | JFuture::from_env(self.env, future_obj) |
| 245 | } |
| 246 | |
| 247 | pub fn set_characteristic_notification( |
| 248 | &self, |
no outgoing calls