feat(clipboard-manager): implement clear on iOS and Android (#1462)

This commit is contained in:
Emin Yilmaz
2024-06-28 12:05:48 +09:00
committed by GitHub
parent 03d3cc3677
commit 99d125d86b
4 changed files with 24 additions and 3 deletions
+1 -3
View File
@@ -92,9 +92,7 @@ impl<R: Runtime> Clipboard<R> {
}
pub fn clear(&self) -> crate::Result<()> {
Err(crate::Error::Clipboard(
"Unsupported on this platform".to_string(),
))
self.0.run_mobile_plugin("clear", ()).map_err(Into::into)
}
}