mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Add methods to get property name and enumerate properties.
Also add method to remove property by handle.
This commit is contained in:
@@ -60,9 +60,15 @@ public class CvSource extends VideoSource {
|
||||
// std::function<void(String name, VideoProperty property)>
|
||||
// onChange);
|
||||
|
||||
/// Remove a property.
|
||||
/// @param name Property name
|
||||
//public void removeProperty(VdeoProperty property) {
|
||||
// CameraServerJNI.removeSourceProperty(m_handle, property.m_handle);
|
||||
//}
|
||||
|
||||
/// Remove a property.
|
||||
/// @param name Property name
|
||||
public void removeProperty(String name) {
|
||||
CameraServerJNI.removeSourceProperty(m_handle, name);
|
||||
CameraServerJNI.removeSourcePropertyByName(m_handle, name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user